mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
v-restart-web: systemctl instead of service
This commit is contained in:
parent
fd57420a70
commit
9c233e92a6
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,9 @@ fi
|
|||
|
||||
# Resart web system if reload didn't work
|
||||
if [ "$rc" -ne 0 ]; then
|
||||
service $WEB_SYSTEM restart >/dev/null 2>&1
|
||||
# service $WEB_SYSTEM restart >/dev/null 2>&1
|
||||
systemctl reset-failed
|
||||
systemctl restart $WEB_SYSTEM >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
send_email_report
|
||||
check_result $E_RESTART "$WEB_SYSTEM restart failed"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue