File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ sync_cron_jobs
8484increase_user_value $user ' $U_CRON_JOBS'
8585
8686# Restarting crond
87- $BIN /v-restart-cron
87+ $BIN /v-restart-cron $restart
8888check_result $? " Cron restart failed" > /dev/null
8989
9090# Logging
Original file line number Diff line number Diff line change 1515# Argument definition
1616user=$1
1717job=$2
18+ restart=$3
1819
1920# Includes
2021# shellcheck source=/usr/local/hestia/func/main.sh
@@ -27,7 +28,7 @@ source $HESTIA/conf/hestia.conf
2728# Verifications #
2829# ----------------------------------------------------------#
2930
30- check_args ' 2' " $# " ' USER JOB'
31+ check_args ' 2' " $# " ' USER JOB [RESTART] '
3132is_format_valid ' user' ' job'
3233is_system_enabled " $CRON_SYSTEM " ' CRON_SYSTEM'
3334is_object_valid ' user' ' USER' " $user "
@@ -65,7 +66,7 @@ if [ ! -z "$suspended" ]; then
6566fi
6667
6768# Restarting crond
68- $BIN /v-restart-cron
69+ $BIN /v-restart-cron $restart
6970check_result $? " Restart restart failed" > /dev/null
7071
7172# Logging
You can’t perform that action at this time.
0 commit comments