Last active
August 14, 2019 08:23
-
-
Save betapcode/da2531e96788f1d5fc3e26ed3c5640b7 to your computer and use it in GitHub Desktop.
[Centos] /etc/init.d/supervisord
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
#!/bin/sh | |
# | |
# supervisord init file for starting up the supervisord daemon | |
# | |
# chkconfig: - 20 80 | |
# description: Starts and stops the supervisord daemon. | |
# AUTHOR : betapcode - [email protected] | |
# COMPANY: Tamtay JSC | |
# VERSION: 1.0 | |
# CREATED: 04/11/2016 10:31:01 AM | |
SUPERVISORD=$(which supervisord) #/usr/local/bin/supervisord | |
SUPERVISORCTL=$(which supervisorctl) #/usr/local/bin/supervisorctl | |
case $1 in | |
start) | |
echo -n "Starting supervisord: " | |
$SUPERVISORD -c /etc/supervisord.conf | |
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
Enabled web UI interface in inet_http_server configuration block in supervisord.conf
Run: http://localhost:9001/