Starting Supervisord at boot
November 24, 2010
Here's an init.d script for starting supervisord
at boot:
# Supervisord auto-start # # description: Auto-starts supervisord # processname: supervisord # pidfile: /var/run/supervisord.pid SUPERVISORD=/usr/bin/supervisord SUPERVISORCTL=/usr/bin/supervisorctl case $1 in start) echo -n "Starting supervisord: " $SUPERVISORD echo ;; stop) echo -n "Stopping supervisord: " $SUPERVISORCTL shutdown echo ;; restart) echo -n "Stopping supervisord: " $SUPERVISORCTL shutdown echo echo -n "Starting supervisord: " $SUPERVISORD echo ;; esac
To make this autostart, run:
# update-rc.d supervisord defaults