Created
October 16, 2012 07:35
-
-
Save solar/3897816 to your computer and use it in GitHub Desktop.
install supervisor
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
description "supervisord" | |
start on started sshd | |
stop on runlevel [!2345] | |
respawn | |
exec /usr/bin/supervisord -n -c /etc/supervisord.conf |
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
# Prerequisite | |
# - easy_install (python-setuptools package) | |
sudo easy_install pip | |
sudo pip install supervisor supervisor-wildcards | |
sudo mkdir -p /var/run/supervisord /var/log/supervisord /etc/supervisord.d | |
sudo cp supervisord.conf /etc/supervisord.conf | |
sudo cp init.conf /etc/init/supervisord.conf |
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
; supervisor config file. | |
[unix_http_server] | |
file=/var/run/supervisord/socket | |
[supervisord] | |
logfile=/var/log/supervisord/supervisord.log | |
logfile_maxbytes=50MB | |
logfile_backups=10 | |
loglevel=info | |
pidfile=/var/run/supervisord/pid | |
nodaemon=false | |
minfds=1024 | |
minprocs=200 | |
[rpcinterface:supervisor] | |
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface | |
[supervisorctl] | |
serverurl=unix:///var/run/supervisord/socket | |
[ctlplugin:wildcards] | |
supervisor.ctl_factory = supervisorwildcards.controllerplugin:make_wildcards_controllerplugin | |
match_group = 1 | |
[include] | |
files = /etc/supervisord.d/*.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment