Update shadowsocksr cron

修改add_cron位置,防止服务关闭后,计划任务依然存在的问题。
This commit is contained in:
505575853 2019-01-18 15:18:14 +08:00 committed by coolsnowwolf
parent 5a6f9be724
commit 351009aedb

View File

@ -368,7 +368,8 @@ start_redir() {
fi
fi
fi
add_cron
return $?
}
@ -487,8 +488,6 @@ EOF
fi
start_server
start_local
add_cron
if [ $(uci_get_by_type global monitor_enable) = 1 ] ;then
let total_count=server_count+redir_tcp+redir_udp+tunnel_enable+kcp_enable_flag+local_enable+pdnsd_enable_flag+switch_enable