Skip to content

Instantly share code, notes, and snippets.

@rogerlin0330
Created July 21, 2019 07:28
Show Gist options
  • Save rogerlin0330/faa6298a9e416ea2abca883d50fb7651 to your computer and use it in GitHub Desktop.
Save rogerlin0330/faa6298a9e416ea2abca883d50fb7651 to your computer and use it in GitHub Desktop.
Server service sample for shadowsocks (https://github.com/10fish/shadowsocks) which should be located in path: /usr/lib/systemd/system.
[Unit]
Description=A secure socks5 proxy, designed to protect your Internet traffic.
After=network.target
[Service]
ExecStart=/usr/bin/ssserver -c /etc/shadowsocks/config.json
ExecStartPost=/bin/sh -c 'umask 022; pgrep ssserver > /var/run/shadowsocks.pid'
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment