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 c42ad37 commit 9409af3Copy full SHA for 9409af3
bin/v-restart-ftp
@@ -45,7 +45,7 @@ if [ -z "$FTP_SYSTEM" ] || [ "$FTP_SYSTEM" = 'remote' ]; then
45
fi
46
47
# Restart system
48
-/etc/init.d/$FTP_SYSTEM restart >/dev/null 2>&1
+service $FTP_SYSTEM restart >/dev/null 2>&1
49
if [ $? -ne 0 ]; then
50
send_email_report
51
echo "Error: $FTP_SYSTEM restart failed"
bin/v-restart-mail
@@ -45,7 +45,7 @@ if [ -z "$MAIL_SYSTEM" ] || [ "$MAIL_SYSTEM" = 'remote' ]; then
-/etc/init.d/$MAIL_SYSTEM restart >/dev/null 2>&1
+service $MAIL_SYSTEM restart >/dev/null 2>&1
echo "Error: $MAIL_SYSTEM restart failed"
0 commit comments