Raspberry Pi Monitor
Create a new file
sudo nano /etc/systemd/system/raspi-mon.service
Add the following to the new file
[Unit]
Description=raspi-mon
After=syslog.target network-online.target
[Service]
Type=simple
User=pi
#EnvironmentFile=/etc/default/raspi-mon
ExecStart=/home/pi/raspi-mon/bin/raspi-mon.js
Restart=always
RestartSec=5
KillMode=process
[Install]
WantedBy=multi-user.target
Type the following commands to enable and then start the service
sudo systemctl daemon-reload
sudo systemctl enable raspi-mon
sudo systemctl start raspi-mon
Afterwards you can watch the log with following command:
sudo journalctl -f -u raspi-mon