doh Posted January 9, 2017 Share Posted January 9, 2017 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 Link to comment Share on other sites More sharing options...
Staff Mark Posted January 9, 2017 Staff Share Posted January 9, 2017 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 Paul 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now