File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed
Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ is_job_suspended
4646
4747# Suspending job
4848update_cron_job_value ' $SUSPENDED' ' yes'
49+ increase_user_value " $user " ' $SUSPENDED_CRON'
4950
5051# Sync system cron with user
5152sync_cron_jobs
@@ -56,7 +57,9 @@ sync_cron_jobs
5657# ----------------------------------------------------------#
5758
5859# Adding task to the vesta pipe
59- restart_schedule ' cron'
60+ if [ " $3 " != ' no_restart' ]; then
61+ restart_schedule ' cron'
62+ fi
6063
6164# Logging
6265log_event ' system' " $V_EVENT "
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ jobs=$(cron_clear_search)
4545
4646# Suspendning
4747for job in $jobs ; do
48- update_cron_job_value ' $SUSPENDED ' ' yes '
48+ $V_BIN /v_suspend_cron_job $user $job ' no_restart '
4949done
5050
5151# Sync system cron with user
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ is_job_unsuspended
4646
4747# Unsuspending job
4848update_cron_job_value ' $SUSPENDED' ' no'
49+ decrease_user_value " $user " ' $SUSPENDED_CRON'
4950
5051# Sync system cron with user
5152sync_cron_jobs
@@ -56,7 +57,9 @@ sync_cron_jobs
5657# ----------------------------------------------------------#
5758
5859# Adding task to the vesta pipe
59- restart_schedule ' cron'
60+ if [ " $3 " != ' no_restart' ]; then
61+ restart_schedule ' cron'
62+ fi
6063
6164# Logging
6265log_event ' system' " $V_EVENT "
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ jobs=$(cron_clear_search)
4545
4646# Unsuspendning jobs
4747for job in $jobs ; do
48- update_cron_job_value ' $SUSPENDED ' ' no '
48+ $V_BIN /v_unsuspend_cron_job $user $job ' no_restart '
4949done
5050
5151# Sync system cron with user
You can’t perform that action at this time.
0 commit comments