Skip to content

Commit 9409af3

Browse files
committed
converted init.d to service cmd
1 parent c42ad37 commit 9409af3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/v-restart-ftp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if [ -z "$FTP_SYSTEM" ] || [ "$FTP_SYSTEM" = 'remote' ]; then
4545
fi
4646

4747
# Restart system
48-
/etc/init.d/$FTP_SYSTEM restart >/dev/null 2>&1
48+
service $FTP_SYSTEM restart >/dev/null 2>&1
4949
if [ $? -ne 0 ]; then
5050
send_email_report
5151
echo "Error: $FTP_SYSTEM restart failed"

bin/v-restart-mail

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if [ -z "$MAIL_SYSTEM" ] || [ "$MAIL_SYSTEM" = 'remote' ]; then
4545
fi
4646

4747
# Restart system
48-
/etc/init.d/$MAIL_SYSTEM restart >/dev/null 2>&1
48+
service $MAIL_SYSTEM restart >/dev/null 2>&1
4949
if [ $? -ne 0 ]; then
5050
send_email_report
5151
echo "Error: $MAIL_SYSTEM restart failed"

0 commit comments

Comments
 (0)