Created
July 21, 2019 07:28
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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