mirror of
https://github.com/plashchynski/crono.git
synced 2026-11-13 12:13:34 +01:00
add monit example
This commit is contained in:
1 parent
d296de7c06
commit
0afdab02ac
1 file changed
+6
@@ -0,0 +1,6 @@
|
||||
check process crono_myapp
|
||||
with pidfile /path/to/crono.pid
|
||||
start program = "bundle exec crono" with timeout 30 seconds
|
||||
stop program = "kill -s TERM `cat /path/to/crono.pid`" with timeout 30 seconds
|
||||
if totalmem is greater than 500 MB for 2 cycles then restart
|
||||
group myapp_crono
|
||||
Reference in new issue
Block a user