diff --git a/bin/v-restart-ftp b/bin/v-restart-ftp index ad28339e..61167279 100755 --- a/bin/v-restart-ftp +++ b/bin/v-restart-ftp @@ -45,7 +45,7 @@ if [ -z "$FTP_SYSTEM" ] || [ "$FTP_SYSTEM" = 'remote' ]; then fi # Restart system -/etc/init.d/$FTP_SYSTEM restart >/dev/null 2>&1 +service $FTP_SYSTEM restart >/dev/null 2>&1 if [ $? -ne 0 ]; then send_email_report echo "Error: $FTP_SYSTEM restart failed" diff --git a/bin/v-restart-mail b/bin/v-restart-mail index 71775262..325f0f0f 100755 --- a/bin/v-restart-mail +++ b/bin/v-restart-mail @@ -45,7 +45,7 @@ if [ -z "$MAIL_SYSTEM" ] || [ "$MAIL_SYSTEM" = 'remote' ]; then fi # Restart system -/etc/init.d/$MAIL_SYSTEM restart >/dev/null 2>&1 +service $MAIL_SYSTEM restart >/dev/null 2>&1 if [ $? -ne 0 ]; then send_email_report echo "Error: $MAIL_SYSTEM restart failed"