Skip to content

Instantly share code, notes, and snippets.

@guyskk
Last active January 30, 2024 05:18
Show Gist options
  • Save guyskk/a9665bc6b2a89b73fae34678b1f6dc6b to your computer and use it in GitHub Desktop.
Save guyskk/a9665bc6b2a89b73fae34678b1f6dc6b to your computer and use it in GitHub Desktop.
shadowsocks server systemd service
[Unit]
Description=Shadowsocks Server
After=network.target
[Service]
ExecStart=/usr/local/bin/ssserver -c /etc/shadowsocks/ss-config.json
Restart=on-abort
[Install]
WantedBy=multi-user.target
@Devnull6
Copy link

1. copy this file to `/etc/systemd/system/shadowsocks-server.service`

2. edit `/etc/shadowsocks/ss-config.json` to config shadowsocks

3. exec `systemctl enable shadowsocks-server` and `systemctl start shadowsocks-server`

it's work! Thanks!

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