]> git.pld-linux.org Git - packages/nginx.git/blobdiff - nginx.monitrc
Merge branch 'dev-dynamic'
[packages/nginx.git] / nginx.monitrc
index a6cb6447b23ddf636bff0265c79cbcc0bdc484df..2c7d573722a95b7eb5ef194ce8f41311d2f1ef34 100644 (file)
@@ -1,7 +1,7 @@
-check process nginx-standard with pidfile /var/run/nginx-standard.pid
+check process nginx with pidfile /var/run/nginx.pid
        group www
-       start program = "/etc/rc.d/init.d/nginx-standard start"
-       stop program = "/etc/rc.d/init.d/nginx-standard stop"
+       start program = "/etc/rc.d/init.d/nginx start"
+       stop program = "/etc/rc.d/init.d/nginx stop"
        if failed url http://localhost/ timeout 10 seconds then restart
 #      if failed host 192.168.1.1 port 443 type TCPSSL
 #              certmd5 12-34-56-78-90-AB-CD-EF-12-34-56-78-90-AB-CD-EF
@@ -9,10 +9,10 @@ check process nginx-standard with pidfile /var/run/nginx-standard.pid
        if 5 restarts within 5 cycles then timeout
 #      alert root@localhost
 #      alert 123456@sms on { timeout }
-       depends on nginx-standard_bin
-       depends on nginx-standard_rc
+       depends on nginx_bin
+       depends on nginx_rc
 
-check file nginx-standard_bin with path /usr/sbin/nginx-standard
+check file nginx_bin with path /usr/sbin/nginx
        group nginx
        if failed checksum then unmonitor
        if failed permission 755 then unmonitor
@@ -20,7 +20,7 @@ check file nginx-standard_bin with path /usr/sbin/nginx-standard
        if failed gid root then unmonitor
 #      alert root@localhost
 
-check file nginx-standard_rc with path /etc/rc.d/init.d/nginx-standard
+check file nginx_rc with path /etc/rc.d/init.d/nginx
        group nginx
        if failed checksum then unmonitor
        if failed permission 754 then unmonitor
@@ -28,6 +28,6 @@ check file nginx-standard_rc with path /etc/rc.d/init.d/nginx-standard
        if failed gid root then unmonitor
 #      alert root@localhost
 
-check file nginx-stanard.conf path /etc/nginx/nginx-standard.conf
+check file nginx-stanard.conf path /etc/nginx/nginx.conf
        if changed sha1 checksum 
-       then exec "/etc/init.d/nginx-standard graceful"
+       then exec "/etc/rc.d/init.d/nginx graceful"
This page took 0.050703 seconds and 4 git commands to generate.