From 9409af3bd0aac45c5f4992550bc22f7beb27319b Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Tue, 20 May 2014 13:26:32 +0300 Subject: [PATCH] converted init.d to service cmd --- bin/v-restart-ftp | 2 +- bin/v-restart-mail | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"