Posted January 9, 20178 yr Hi I run Domoticz on a Raspberry Pi and have this successfully being monitored by Pulseway. I am now also using the BA-Bridge software which runs as a java process. Can anyone tell me how to configure Pulseway to monitor this and be able to re-start it if it should fail? The process is started by having /etc/rc.local call a script that does this: nohup java -jar -Dserver.port=8090 -Dconfig.file=/home/pi/habridge/habridge.config /home/pi/habridge/ha-bridge-3.5.1.jar > /home/pi/habridge/habridge-log.txt 2>&1 & Â Thanks
January 9, 20178 yr Staff Hi, You can make a systemctl service: [Unit] Description=HA Bridge Wants=network.target After=network.target [Service] Type=simple ExecStart=/usr/bin/java -jar -Dserver.port=8090 -Dconfig.file=/home/pi/habridge/habridge.config /home/pi/habridge/ha-bridge-3.5.1.jar > /home/pi/habridge/habridge-log.txt 2>&1 [Install] WantedBy=multi-user.target  Mark
Create an account or sign in to comment