一个简单的.service配置文件实例

用于启动Brook Client:
[Unit]
Description=Brook Client

[Service]
ExecStart=/path/to/brook client -l 127.0.0.1:1080 -i 127.0.0.1 -s your_sever:port -p your_password

[Install]
WantedBy=multi-user.target

 

将其保存为Brook.service,移动到/etc/systemd/system
执行:
systemctl start Brooksystemctl enable Brook
即可。