msmhq / msm

An init script for managing Minecraft servers
http://msmhq.com
GNU General Public License v3.0
1.22k stars 225 forks source link

Integrate msm with monit #263

Open jag34 opened 10 years ago

jag34 commented 10 years ago

Monit is a watchdog program for monitoring and managing running programs and servers. msm currently restarts crashed servers every hour, monit would allow for monitoring of running servers and restarting them based on different rules and events based on process running state.

marcuswhybrow commented 10 years ago

It looks like Monit polls every so often to check if a process is running or not running and then restarts it if it is not: https://mmonit.com/monit/documentation/#service_poll_time

I think depending on Monit to do this would be overkill since MSM could do this itself with a few lines of code, but I like the idea of doing better checking.

I don't think there's anything preventing someone from using Monit with MSM to restart servers using the MSM command if they wanted Monit's advanced functionality.