Skip to content

Instantly share code, notes, and snippets.

@ygmpkk
Created February 22, 2015 08:16
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 15 You must be signed in to fork a gist
  • Save ygmpkk/757b89cbe6f911656ddb to your computer and use it in GitHub Desktop.
Save ygmpkk/757b89cbe6f911656ddb to your computer and use it in GitHub Desktop.
ShadowSocks Client Systemd Service
[Unit]
Description=Daemon to start Shadowsocks Client
Wants=network-online.target
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/sslocal -c /etc/shadowsocks/client.json --pid-file /var/run/sslocal.pid --log-file /var/log/sslocal.log
[Install]
WantedBy=multi-user.target
@ygmpkk
Copy link
Author

ygmpkk commented Feb 22, 2015

copy to /etc/systemd/system/sslocal.service

@realwronger
Copy link

找了半天,你给解决了,谢谢~
不过有个小问题,后面两个参数好像没用
-d start/stop/restart daemon mode
--pid-file PID_FILE pid file for daemon mode
--log-file LOG_FILE log file for daemon mode

@ygmpkk
Copy link
Author

ygmpkk commented Jun 24, 2019

找了半天,你给解决了,谢谢~
不过有个小问题,后面两个参数好像没用
-d start/stop/restart daemon mode
--pid-file PID_FILE pid file for daemon mode
--log-file LOG_FILE log file for daemon mode

不客气。那个是放日志的,你根据自己的适当选择路径

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