Gui*_*rme 30 linux unix monitoring monit
Monit 以 root 身份运行,但我不想以 root 身份启动我的进程.. 像 mysql、mongrel、apache..
crb*_*crb 60
check process tomcat with pidfile /var/run/tomcat.pid
start program = "/etc/init.d/tomcat start"
as uid nobody and gid nobody
stop program = "/etc/init.d/tomcat stop"
# You can also use id numbers instead and write:
as uid 99 and with gid 99
if failed port 8080 then restart
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
26193 次 |
最近记录: |