SS多用户版添加为系统服务脚本shadowsocks-py.service
使用 systemctl enable shadowsocks-py 设置开机启动
使用 systemctl start shadowsocks-py 运行ss多用户版
使用 systemctl status shadowsocks-py 查看状态
并且可以指定运行用户组,非常之方便。
(感谢 @kookxiang [https://ikk.me/] 大神指导写systemd服务脚本
[Unit]
Description=Shadowsocks Proxy Services(Py ManyUser)
After=syslog.target
After=network.target
[Service]
Type=simple
User=shadowsocks
Group=shadowsocks
WorkingDirectory=/home/shadowsocks
ExecStart=/usr/