我想在ubuntu 18.04上启动shadowsocks
见this。
我的壳是阴影袜
#!/bin/bash
if [ -f /usr/bin/sslocal ]; then
sudo /usr/bin/sslocal -c /etc/shadowsocks/config.json -d restart -v
fi
运行良好
我用systemctl设置
就像这个暗影袜。服务
[Service]
ExecStart=/usr/local/bin/shadowsocks.sh
[Install]
WantedBy=default.target
Alias=ss.service
当我跑的时候
sudo systemctl start ss.service
我可以看到暗影袜记录“启动”
但我看不到“影子袜”的启动,也不能使用谷歌。
我是中国人,很抱歉我的英语不好,我希望有人能看到我的问题
最佳答案
在shell脚本中删除-d
一切都好
关于linux - 如何在Systemd Ubuntu 18.04的启动引导时自动执行Shell脚本,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/50695843/