Skip to content

Instantly share code, notes, and snippets.

@AtomicVar
Last active November 9, 2018 15:12
Show Gist options
  • Save AtomicVar/1e45023da216d8bc9ab1bcc57f970d24 to your computer and use it in GitHub Desktop.
Save AtomicVar/1e45023da216d8bc9ab1bcc57f970d24 to your computer and use it in GitHub Desktop.
Shadowsocks Python (3.0.0) systemd service script
[Unit]
Description=Shadowsocks Python local client
[Service]
Type=forking
ExecStart=/path/to/sslocal -c /path/to/config.json -d start
ExecReload=/path/to/sslocal -c /path/to/config.json -d restart
ExecStop=/path/to/sslocal -c /path/to/config.json -d stop
[Install]
WantedBy=multi-user.target
@AtomicVar
Copy link
Author

Shadowsocks-libev 配置文件

[Unit]
Description=Shadowsocks-libev local client

[Service]
Type=forking
ExecStart=/path/to/ss-local -c /path/to/config.json -f /path/to/pidfile
ExecReload=/path/to/ss-local -c /path/to/config.json -f /path/to/pidfile
ExecStop=/path/to/ss-local -c /path/to/config.json -f /path/to/pidfile

[Install]
WantedBy=multi-user.target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment