Bläddra i källkod

Fix privilege error in monit tomcat6 config

The tomcat6 user doesn't have the right privileges to run the
/etc/init.d/tomcat6 script.  Removing these lines allows monit to
restart tomcat if it stops for any reason, and makes the tomcat6 monit
config more consistent with other monit configs elsewhere.
Philip Potter 9 år sedan
förälder
incheckning
94e0ed5be9
1 ändrade filer med 0 tillägg och 2 borttagningar
  1. 0
    2
      roles/monitoring/files/etc_monit_conf.d_tomcat

+ 0
- 2
roles/monitoring/files/etc_monit_conf.d_tomcat Visa fil

1
 check process tomcat with pidfile "/var/run/tomcat6.pid"
1
 check process tomcat with pidfile "/var/run/tomcat6.pid"
2
   group mail
2
   group mail
3
   start program = "/etc/init.d/tomcat6 start"
3
   start program = "/etc/init.d/tomcat6 start"
4
-  as uid tomcat6 gid tomcat6
5
   stop program = "/etc/init.d/tomcat6 stop"
4
   stop program = "/etc/init.d/tomcat6 stop"
6
-  as uid tomcat6 gid tomcat6
7
   if failed port 8080 then alert
5
   if failed port 8080 then alert
8
   if failed port 8080 for 5 cycles then restart
6
   if failed port 8080 for 5 cycles then restart

Laddar…
Avbryt
Spara