Last active
August 29, 2015 14:07
-
-
Save shrkw/103dfc2a083791e958a1 to your computer and use it in GitHub Desktop.
SupervisordにXMLRPC経由で繋いでプログラムを開始/停止してみる ref: http://qiita.com/shrkw/items/264294fcb1afdced6bf1
This file contains hidden or 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
[inet_http_server] ; inet (TCP) server disabled by default | |
port=127.0.0.1:9001 ; (ip_address:port specifier, *:port for all iface) | |
;username=user ; (default is no username (open server)) | |
;password=123 ; (default is no password (open server)) | |
[include] | |
files = conf.d/*.ini |
This file contains hidden or 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
[program:simplehttp] | |
command=python -m SimpleHTTPServer ; the program (relative uses PATH, can take args) | |
process_name=%(program_name)s ; process_name expr (default %(program_name)s) | |
numprocs=1 ; number of processes copies to start (def 1) | |
directory=/tmp ; directory to cwd to before exec (def no cwd) | |
autostart=true ; start at supervisord start (default: true) | |
autorestart=unexpected ; whether/when to restart (default: unexpected) | |
stdout_logfile=/tmp/simplehttp.stdout ; stdout log path, NONE for none; default AUTO | |
stderr_logfile=/tmp/simplehttp.stderr ; stderr log path, NONE for none; default AUTO | |
environment=PATH=/Users/shrkw/.virtualenv/cpython-275/bin ; process environment additions (def no adds) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment