Skip to content

Commit 43e2863

Browse files
author
Kristan Kenney
committed
Update restart routine in v-restart-cron
1 parent 659f834 commit 43e2863

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

bin/v-restart-cron

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,10 @@ if [ -z "$CRON_SYSTEM" ] || [ "$CRON_SYSTEM" = 'remote' ]; then
5050
fi
5151

5252
# Restart system
53-
service $CRON_SYSTEM reload >/dev/null 2>&1
53+
$BIN/v-restart-service $CRON_SYSTEM >/dev/null 2>&1
5454
if [ $? -ne 0 ]; then
55-
service $CRON_SYSTEM restart >/dev/null 2>&1
56-
if [ $? -ne 0 ]; then
57-
send_email_report
58-
check_result $E_RESTART "$CRON_SYSTEM restart failed"
59-
fi
55+
send_email_report
56+
check_result $E_RESTART "$CRON_SYSTEM restart failed"
6057
fi
6158

6259
# Update restart queue

0 commit comments

Comments
 (0)