mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -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 "$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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue