Created
June 15, 2012 15:39
-
-
Save scj7t4/2937097 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment