parent
28b5ccca8e
commit
3fde27f83b
1 changed files with 5 additions and 1 deletions
|
@ -5,4 +5,8 @@ else
|
|||
fi
|
||||
|
||||
systemctl daemon-reload
|
||||
systemctl is-active --quiet http-server-status && systemctl restart http-server-status && echo "Restart Service"
|
||||
STATUS="$(systemctl is-active tomcat.service)"
|
||||
if [ "${STATUS}" = "active" ]; then
|
||||
systemctl restart http-server-status
|
||||
echo "Restart Service"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue