Install monit

broken image
broken image

The start and stop commands are telling it how to start and stop the process. The first line is telling it of the process and where the pid file is. If loadavg(5min) greater than 3 for 8 cycles then stop If totalmem > 800.0 MB for 5 cycles then restart If failed port 8083 protocol http then restart Stop program '/etc/init.d/z-way-server stop'

broken image

Start program '/etc/init.d/z-way-server start'

broken image

Code: Select all check process z-way-server with pidfile /var/run/z-way-server.pid

broken image