Sometimes my z-way-server crashes, it could be hour, days or month between the crashes so its hard to know when it will happen and it is always frustrating when it occurs because you will notice it when the lights not comes on or when you try to control something and it does not work.
I have no solution for the crashes but I have a workaround that will restart the service when it crashes.
I just installed this tonight and I have verified it by stopping the service and I see no reason that this will fail in the long run.
Simple instruction on how I did this.
sudo apt-get install monit
Modify the config to change the check interval(optional step):
sudo nano /etc/monit/monitrc
set daemon 120
enable monit webserver at port 2812 with login username admin and password monit(optional step):
set httpd port 2812 and
Save the file and create a new config file with the following content:
sudo nano /etc/monit/conf.d/z-way-server
check process z-way-server with match z-way-server
start program = "/etc/init.d/z-way-server start"
stop program = "/etc/init.d/z-way-server stop"
save the file
last command to initialize monit with new config:
sudo monit reload
Now monit will start z-way-server if it does not run.
If you have enabled the web server then you could monitor this at http://ip:2812
Discussions about Z-Way software and Z-Wave technology in general
1 post • Page 1 of 1