We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/root/trojan/trojan-go -config /root/trojan/config-forward.json & /root/trojan/trojan-go -config /root/trojan/config-nat.json &
就这2条命令,我放在/etc/rc.local里面的
这2条命令手动执行没问题,但是每次我重启openwrt,其他命令都生效,就这2条命令不生效,不管我把这2条命令放在什么位置,都不生效
导致每次停电或者路由器重启我都要手动执行一下
请问怎么弄才能实现开机自动启动?
The text was updated successfully, but these errors were encountered:
if [ ! -f "/tmp/trojan-go.txt" ] then /etc/trojan-go/trojan-go -config /etc/trojan-go/config-forward.json & /etc/trojan-go/trojan-go -config /etc/trojan-go/config-nat.json & shijian=date echo $shijian >> /tmp/trojan-go.txt fi
date
我解决了 用crontab1分钟运行一次就好了
Sorry, something went wrong.
No branches or pull requests
/root/trojan/trojan-go -config /root/trojan/config-forward.json &
/root/trojan/trojan-go -config /root/trojan/config-nat.json &
就这2条命令,我放在/etc/rc.local里面的
这2条命令手动执行没问题,但是每次我重启openwrt,其他命令都生效,就这2条命令不生效,不管我把这2条命令放在什么位置,都不生效
导致每次停电或者路由器重启我都要手动执行一下
请问怎么弄才能实现开机自动启动?
The text was updated successfully, but these errors were encountered: