Skip to content

Instantly share code, notes, and snippets.

@palytoxin
Last active July 3, 2020 07:53
Show Gist options
  • Save palytoxin/13c8c55192df4e36cb46 to your computer and use it in GitHub Desktop.
Save palytoxin/13c8c55192df4e36cb46 to your computer and use it in GitHub Desktop.
shadowsocks.service
[Unit]
Description=Shadowsocks Server
After=network.target
[Service]
User=nobody
Group=nobody
ExecStart=/usr/bin/ssserver --pid-file /var/run/shadowsocks/redir.pid -c /etc/shadowsocks.json
Restart=on-failure
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
RestartSec=5s
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment