mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-02 14:13:56 +08:00
update 2026-10-05 19:05:58
This commit is contained in:
1 parent
ce2c617af4
commit
ec960a1df0
185 files changed
+212
-41511
No files matched your search
@@ -946,7 +946,7 @@ start_crontab() {
|
||||
clean_crontab
|
||||
|
||||
if [ "$ENABLED" != "1" ]; then
|
||||
/etc/init.d/cron restart
|
||||
[ -x /etc/init.d/cron ] && /etc/init.d/cron restart >/dev/null 2>&1
|
||||
return
|
||||
fi
|
||||
|
||||
@@ -1042,13 +1042,13 @@ start_crontab() {
|
||||
echolog "运行于非代理模式,仅允许服务启停的定时任务。"
|
||||
fi
|
||||
|
||||
/etc/init.d/cron restart
|
||||
[ -x /etc/init.d/cron ] && /etc/init.d/cron restart >/dev/null 2>&1
|
||||
}
|
||||
|
||||
stop_crontab() {
|
||||
[ "$1" = "cron" ] && return
|
||||
clean_crontab
|
||||
/etc/init.d/cron restart
|
||||
[ -x /etc/init.d/cron ] && /etc/init.d/cron restart >/dev/null 2>&1
|
||||
#echolog "清除定时执行命令。"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user