CopyPastehas never been so tasty!

monit

by anonymous

  • 0
  • 0
56 views

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
#!monit
#set logfile /var/log/monit.log
 
#check process gisxl  with pidfile "/var/run/gisdesktop.pid"
check host gisdesktop with address 127.0.0.1
    start program = "/sbin/start gisdesktop"
    stop program  = "/sbin/stop gisdesktop"
    if failed port 8889 protocol HTTP
        request /
        with timeout 10 seconds
        then restart
 
 
 
#!monit
#set logfile /var/log/monit.log
 
#check process gisxl  with pidfile "/var/run/gisxl.pid"
check host gisxl with address 127.0.0.1
    start program = "/sbin/start gisxl"
    stop program  = "/sbin/stop gisxl"
    if failed port 8888 protocol HTTP
        request /
        with timeout 10 seconds
        then restart