Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daemon mode? #9

Closed
x0r2d2 opened this issue Apr 26, 2017 · 4 comments
Closed

Daemon mode? #9

x0r2d2 opened this issue Apr 26, 2017 · 4 comments

Comments

@x0r2d2
Copy link

x0r2d2 commented Apr 26, 2017

How to start go-ss2 in daemon mode?

@riobard
Copy link
Owner

riobard commented Apr 26, 2017

Daemonization should be handled by your OS, e.g. supervisor/systemd/upstart/launchd.

@x0r2d2
Copy link
Author

x0r2d2 commented Apr 26, 2017

I am not a master of Linux, what I need to do to make it real?

@riobard
Copy link
Owner

riobard commented Apr 26, 2017

Most modern Linux distro use systemd now. Google "systemd service file".

@riobard riobard closed this as completed Apr 26, 2017
@bigtan
Copy link

bigtan commented Apr 26, 2017

[Unit]
Description=Shadowsocks Server
After=network.target

[Service]
ExecStart=/usr/bin/ss-server -s ss://AEAD_CHACHA20_POLY1305:xxxxxxxxx@:xxxx
User=nobody
Group=nogroup

[Install]
WantedBy=multi-user.target

refer to shadowsocks/shadowsocks-go#141

slanterns pushed a commit to b81404324df7098a8e021232d7db/go-shadowsocks2 that referenced this issue Dec 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants