Shadowsocks-libev: how run ss-server on background?

Created on 10 Jan 2017  ·  7Comments  ·  Source: shadowsocks/shadowsocks-libev

ss-server -c /etc/config.json -d start -u --plugin "obfs-server --obfs http"
i add -d start
but still not run on background

question

Most helpful comment

ss-server &

All 7 comments

@madeye
thanks for reply
but ur link there is nothing about how to run ss-server on background

@elric8

-f
Start shadowsocks as a daemon with specific pid file.

A daemon runs in background.

Use -f /path/to/pid/file params.

ss-server -c config.json -f ss-server.pid

ss-server &

ss-server &

ss-server &! works better this way....
But I recommend to write a service file and use systemd.
If you cannot use systemd, you can use supervisord
If you can not use supervisord, you can do it like this
"ss-server" "--fast-open" "--no-delay" "-s" "0.0.0.0" "-p" "2337" "-k" "googlab" "-m" "xchacha20-ietf-poly1305" "--plugin" "v2ray-plugin" "--plugin-opts" "server;fast-open;host=www.baidu.com" "-f" "ss-server-2337.pid"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

piscesmk2013 picture piscesmk2013  ·  4Comments

d0u9 picture d0u9  ·  4Comments

qianguozheng picture qianguozheng  ·  4Comments

triaqu picture triaqu  ·  4Comments

rule2c picture rule2c  ·  4Comments