Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
shadowsocks server systemd service
[Unit]
Description=Shadowsocks Server
After=network.target
[Service]
ExecStart=/usr/local/bin/ssserver -c /etc/shadowsocks/ss-config.json
Restart=on-abort
[Install]
WantedBy=multi-user.target
@guyskk

This comment has been minimized.

Copy link
Owner Author

commented May 2, 2016

  1. copy this file to /etc/systemd/system/shadowsocks-server.service
  2. edit /etc/shadowsocks/ss-config.json to config shadowsocks
  3. exec systemctl enable shadowsocks-server and systemctl start shadowsocks-server
@albertofwb

This comment has been minimized.

Copy link

commented Aug 2, 2017

Restart=on-abort is not stable when someone execute

pkill ssserver

systemd wont restart ssserver
set the Restart=always to ensure the ssserver is available forever

@Devnull6

This comment has been minimized.

Copy link

commented Feb 13, 2019

1. copy this file to `/etc/systemd/system/shadowsocks-server.service`

2. edit `/etc/shadowsocks/ss-config.json` to config shadowsocks

3. exec `systemctl enable shadowsocks-server` and `systemctl start shadowsocks-server`

it's work! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.