fzaninotto / uptime

A remote monitoring application using Node.js, MongoDB, and Twitter Bootstrap.
http://fzaninotto.github.com/uptime/
MIT License
3.62k stars 706 forks source link

Scheduled maintenance #318

Open zzart opened 9 years ago

zzart commented 9 years ago

Thanks for great project! One of my requirements is to account for scheduled maintenance. How would you recon should one go about implementing this ? Should this be a plugin or does it need to be implemented in the main source?

tdebarochez commented 9 years ago

You can already do this by running uptime in two separate processes : one for app.js and a second for monitor.js. When you need to stop pinging your application, stop the monitor and restart it later. For my need, I kill it in the crontab every night and start it again once it's finished. The app.js script never stop.