Jump to content

Recommended Posts

Posted

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

  • Staff
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...