mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 13:24:24 -07:00
converted init.d to service cmd
This commit is contained in:
parent
c42ad37120
commit
9409af3bd0
2 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ if [ -z "$FTP_SYSTEM" ] || [ "$FTP_SYSTEM" = 'remote' ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restart system
|
# Restart system
|
||||||
/etc/init.d/$FTP_SYSTEM restart >/dev/null 2>&1
|
service $FTP_SYSTEM restart >/dev/null 2>&1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
send_email_report
|
send_email_report
|
||||||
echo "Error: $FTP_SYSTEM restart failed"
|
echo "Error: $FTP_SYSTEM restart failed"
|
||||||
|
|
|
@ -45,7 +45,7 @@ if [ -z "$MAIL_SYSTEM" ] || [ "$MAIL_SYSTEM" = 'remote' ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restart system
|
# Restart system
|
||||||
/etc/init.d/$MAIL_SYSTEM restart >/dev/null 2>&1
|
service $MAIL_SYSTEM restart >/dev/null 2>&1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
send_email_report
|
send_email_report
|
||||||
echo "Error: $MAIL_SYSTEM restart failed"
|
echo "Error: $MAIL_SYSTEM restart failed"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue