![]() Newer versions let you do that in a single file : check file restart_resque path /tmp/restart_resque.txt Start program = "/usr/local/bin/resque_stop.sh" Start program = "/usr/local/bin/resque_restart.sh" With old monit you need 2 files : the monitrc script and a restart script : # monitrc file ![]() I like that.Īnd well Monit can actually do something similar. ![]() Nginx and other services have been supporting a neat way to restart processes : a simple file existence check. I don't really like that, it stops me from automating or just firing the deploy from somewhere. Yet in some cases monit handles the daemons and their stop / start events.Īs a result, often we require to enter a password to pass the sudo. Logo by mountdesign.Nowadays we tend to automate a lot of things. At some point I'll make it do more extensive testing for Minecraft and SyncThing, but this gets me 90% of what I wanted:Ĭheck host localhost with address Ĭheck host with address Ĭontact To respond to this post, send me an email at the extent possible under law, Brendan Long has waived all copyright and related or neighboring rights to this work. I made it quieter by adding for 3 cycles to that rule. In my case, the connection to my SMTP server would randomly fail, but it doesn't really matter as long as a retry works.
0 Comments
Leave a Reply. |