日志:
2015-02-13 01:32:25,470 CRIT Supervisor running as root (no user in config file)
2015-02-13 01:32:25,471 INFO RPC interface 'supervisor' initialized
2015-02-13 01:32:25,471 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2015-02-13 01:32:25,471 INFO supervisord started with pid 5550
2015-02-13 01:32:26,473 INFO spawned: 'shadowsocks' with pid 9378
2015-02-13 01:32:26,564 INFO exited: shadowsocks (exit status 1; not expected)
2015-02-13 01:32:27,566 INFO spawned: 'shadowsocks' with pid 9380
2015-02-13 01:32:27,665 INFO exited: shadowsocks (exit status 1; not expected)
2015-02-13 01:32:29,668 INFO spawned: 'shadowsocks' with pid 9382
2015-02-13 01:32:29,754 INFO exited: shadowsocks (exit status 1; not expected)
2015-02-13 01:32:32,758 INFO spawned: 'shadowsocks' with pid 9384
2015-02-13 01:32:32,845 INFO exited: shadowsocks (exit status 1; not expected)
2015-02-13 01:32:33,846 INFO gave up: shadowsocks entered FATAL state, too many start retries too quickly
配置:
[program:shadowsocks]
command=/usr/bin/python /usr/local/bin/ssserver -c /mithril/etc/shadowsocks.json -d start
stdout_logfile=/mithril/log/shadowsocks_stdout.log
stdout_logfile_maxbytes=1MB
stderr_logfile=/mithril/log/shadowsocks_stderr.log
stderr_logfile_maxbytes=1MB
autostart=true
autorestart=true
实际上,shadowsocks 启动成功。 但主管说FATAL
。 我该怎么办??
https://github.com/shadowsocks/shadowsocks/blob/master/README.md#usage :
在前台运行:
ssserver -c /etc/shadowsocks.json
在后台运行:
ssserver -c /etc/shadowsocks.json -d 启动
ssserver -c /etc/shadowsocks.json -d 停止
您从-d
开始。 在 Supervisor 下运行的程序不得守护进程。 这在子进程的非守护进程中进行了解释。 而是在前台运行它。
请在邮件列表中询问有关使用 Supervisor 的一般问题。
我已经在前台运行它,但仍然显示'FATAL Exited too faster...'
谢谢,
我用“ssserver -c /etc/shadowsocks.json start”解决了..
最有用的评论
https://github.com/shadowsocks/shadowsocks/blob/master/README.md#usage :
您从
-d
开始。 在 Supervisor 下运行的程序不得守护进程。 这在子进程的非守护进程中进行了解释。 而是在前台运行它。请在邮件列表中询问有关使用 Supervisor 的一般问题。