ํต๋๋ฌด:
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
์ค์ ๋ก shadowsock์ ์ฑ๊ณต์ ์ผ๋ก ์์๋ฉ๋๋ค. ๊ทธ๋ฌ๋ ๊ฐ๋
์๋ 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 fast...'๊ฐ ํ์๋ฉ๋๋ค.
๊ฐ์ฌ ํด์,
"ssserver -c /etc/shadowsocks.json start"๋ฅผ ์ฌ์ฉํ๋ฉด ํด๊ฒฐ๋ฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
https://github.com/shadowsocks/shadowsocks/blob/master/README.md#usage :
-d
๋ก ์์ํฉ๋๋ค. Supervisor์์ ์คํ๋๋ ํ๋ก๊ทธ๋จ์ ๋ฐ๋ชฌํ๋์ง ์์์ผ ํฉ๋๋ค. ์ด๊ฒ์ ํ์ ํ๋ก์ธ์ค์ ๋น๋ฐ๋ชฌํ์ ์ค๋ช ๋์ด ์์ต๋๋ค. ๋์ ์ ๊ฒฝ์์ ์คํํ์ญ์์ค.๋ฉ์ผ๋ง ๋ฆฌ์คํธ ์์ Supervisor ์ฌ์ฉ์ ๋ํ ์ผ๋ฐ์ ์ธ ์ง๋ฌธ์ ํ์ญ์์ค.