mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
systemctl instead of service in v-restart-dns
This commit is contained in:
parent
7f38c8ceaf
commit
93c1414217
1 changed files with 3 additions and 2 deletions
|
@ -55,9 +55,10 @@ if [ -z "$DNS_SYSTEM" ] || [ "$DNS_SYSTEM" = 'remote' ] ; then
|
|||
fi
|
||||
|
||||
# Restart system
|
||||
service $DNS_SYSTEM reload >/dev/null 2>&1
|
||||
systemctl reset-failed $DNS_SYSTEM
|
||||
systemctl reload $DNS_SYSTEM >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
service $DNS_SYSTEM restart >/dev/null 2>&1
|
||||
systemctl restart $DNS_SYSTEM >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
send_email_report
|
||||
check_result $E_RESTART "$DNS_SYSTEM restart failed"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue