converted init.d to service cmd

This commit is contained in:
Serghey Rodin 2014-05-20 13:26:32 +03:00
commit 9409af3bd0
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -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"