Skip to content

Instantly share code, notes, and snippets.

@hardywu
Created March 25, 2017 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hardywu/403d37b8c5500f0b07df0d32fbad2711 to your computer and use it in GitHub Desktop.
Save hardywu/403d37b8c5500f0b07df0d32fbad2711 to your computer and use it in GitHub Desktop.
systemd service unit file for https://github.com/esdeathlove/shadowsocks
[Unit]
Description=Shadowsocksr-Server: a proxy server
After=network.target
[Service]
Type=forking
PIDFile=/run/shadowsocksrd.pid
WorkingDirectory=/root/shadowsocks
ExecStart=/root/shadowsocks/server.py
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment