[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisord]
pidfile = run/supervisord.pid
logfile = log/supervisord.log
[unix_http_server]
file = run/supervisor.sock
chmod = 0766
[supervisorctl]
serverurl = unix://run/supervisor.sock
history_file = log/.supervisorctl_history
[program:foo]
command=cat
stdout_logfile=log/%(program_name)s.out
stderr_logfile=log/%(program_name)s.err
[program:bar]
command=cat
redirect_stderr=true
stdout_logfile=log/%(program_name)s.log
[program:ssh_tunnel]
command=ssh -C -N -R 22222:localhost:22 ali.tyio.net
redirect_stderr=true
stdout_logfile=log/%(program_name)s.log
startretries=1000
[program:crawler]
command=./loop.sh
numprocs=16
#process_name=%(program_name)s-%(process_num)03d
process_name=%(process_num)03d
stdout_logfile=log/%(program_name)s-%(process_num)03d.out
stderr_logfile=log/%(program_name)s-%(process_num)03d.err
[program:redis]
command=redis-server etc/redis.conf
redirect_stderr=true
stdout_logfile=log/%(program_name)s.log
umask=002
priority=5
stopwaitsecs=30
# amd做傀儡, 本机 127.1.1.1 才是真正的 sss
[program:s]
command = ssserver -s 127.1.1.1 -p 58388 -k z
redirect_stderr = true
stdout_logfile = log/%(program_name)s.log
[program:t]
command = ssh -C -N -R 0.0.0.0:58388:127.1.1.1:58388 amd.tyio.net
redirect_stderr = true
stdout_logfile = log/%(program_name)s.log