-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
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
重启路由后SSR链接会断开,需要重启SS才行 #14
Comments
你说的这个情况,加到开机启动就可以了吧? 如果想定时重启加到crontab就可以了。 怎么加,我就没试过了。 |
能大概讲讲思路吗?应该加哪个sh文件到crontab? |
重启时调用的是\jffs\koolshare\ss\start.sh 脚本。 |
找到2行代码。但是我看不懂,是怎么实现开机启动的,希望能加个延迟,开机1分钟后再开启ss nat_auto_start(){ |
根据Moudule_shadowsocks.asp |
How can I add a cron job?[toc, link] cruadd: cru a <"min hour day month week command"> cru a TwiceMonthlyReboot "0 3 1,15 * * reboot"(03:00, 1st and 15th of every month) cru a SundayWanRestart "0 2 * * 0 service wan restart"(02:00, every Sunday) cru a NightLightOn "0 20 * * * led white on aoss on"(20:00 everyday) cru a NightLightOff "0 6 * * * led white off aoss off"(06:00 everyday) |
发现一个可能有用的办法 #Do not delete ks-wan-start.sh! It's very important for software center!!! |
/jffs/koolshare/scripts/ss_config.sh start |
可以把以下脚本放到计划任务里,设置每分钟执行一次。 #!/bin/sh |
固件版本为7.8 #更改用户组
chown admin:root dong.sh
#更改权限
chmod 755 dong.sh
添加了重启日志 #!/bin/sh
get_foreign_status()
{
wget -4 --spider --quiet --tries=2 --timeout=2 www.google.com.tw
time=$(date +%Y-%m-%d-%X)
if [ "$?" != "0" ]; then
/koolshare/ss/ssconfig.sh restart
echo "$time ssr restart" >> ssrlog
fi
}
get_foreign_status 添加重启脚本 #此为添加定时任务
cru a ssrestart 1 * * * * /bin/sh /koolshare/scripts/dong.sh
|
wget -4 --spider --quiet --tries=2 --timeout=2 www.google.com.tw
没有一些参数~~ |
有检测连接状态并重启SS的脚本吗?
shadowsocks 1.2.7
The text was updated successfully, but these errors were encountered: