We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 659f834 commit 43e2863Copy full SHA for 43e2863
bin/v-restart-cron
@@ -50,13 +50,10 @@ if [ -z "$CRON_SYSTEM" ] || [ "$CRON_SYSTEM" = 'remote' ]; then
50
fi
51
52
# Restart system
53
-service $CRON_SYSTEM reload >/dev/null 2>&1
+$BIN/v-restart-service $CRON_SYSTEM >/dev/null 2>&1
54
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
+ send_email_report
+ check_result $E_RESTART "$CRON_SYSTEM restart failed"
60
61
62
# Update restart queue
0 commit comments