Created
February 22, 2015 08:16
-
-
Save ygmpkk/757b89cbe6f911656ddb to your computer and use it in GitHub Desktop.
ShadowSocks Client Systemd Service
This file contains 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=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 |
找了半天,你给解决了,谢谢~
不过有个小问题,后面两个参数好像没用
-d start/stop/restart daemon mode
--pid-file PID_FILE pid file for daemon mode
--log-file LOG_FILE log file for daemon mode
找了半天,你给解决了,谢谢~
不过有个小问题,后面两个参数好像没用
-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
copy to
/etc/systemd/system/sslocal.service