Ver código fonte

converted init.d to service cmd

Serghey Rodin 11 anos atrás
pai
commit
9409af3bd0
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      bin/v-restart-ftp
  2. 1 1
      bin/v-restart-mail

+ 1 - 1
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"

+ 1 - 1
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"