17 lines
579 B
Text
17 lines
579 B
Text
set daemon 30
|
|
set log syslog
|
|
set pidfile /run/monit.pid
|
|
set idfile /var/.monit.id
|
|
set statefile /var/.monit.state
|
|
|
|
set httpd port 2812 and
|
|
use address localhost
|
|
allow localhost
|
|
|
|
check process transmitir with pidfile /tmp/transmitir.pid
|
|
start program = "/usr/local/bin/transmitir" as uid "alarm" and gid "alarm"
|
|
stop program = "/bin/sh -c 'cat /tmp/transmitir.pid | xargs kill'"
|
|
|
|
check process grabar with pidfile /tmp/grabar.pid
|
|
start program = "/usr/local/bin/grabar" as uid "alarm" and gid "alarm"
|
|
stop program = "/bin/sh -c 'cat /tmp/grabar.pid | xargs kill'"
|