Voror is a daemon that watches other daemons and respawns them if a restart file is touched. This is useful for Capistrano deployments so that restarts require only touching a file.
Voror requires the watchdog Python module. To install it, if you're using Pip:
pip install watchdog
Or if you're using easy_install:
easy_install watchdog
- Copy ./voror into /etc/init.d/
- Create voror.conf in /etc/voror/
- Add to your startup by running
sudo update-rc.d voror defaults
Place daemons to watch on each line of your voror.conf. Example:
mydaemon
nginx
redis
Whenever you touch /tmp/voror/(mydaemon|nginx|redis)
, Voror will restart
the daemon that you touched the file for.