1
0

fix: deb卸载systemctl操作判断

This commit is contained in:
TsMask
2024-09-21 16:12:45 +08:00
parent 1c565bdd61
commit 586b4c2f5a
4 changed files with 26 additions and 18 deletions

View File

@@ -1,14 +1,14 @@
# !/bin/bash
echo -n "Stopping OMC service ... "
systemctl daemon-reload
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
echo -n "Stopping OMC service ... "
systemctl stop restagent.service
systemctl stop crontask.service
systemctl stop sshsvc.service
systemctl stop captrace.service
echo "done"
fi
echo "done"
FERootDir=/usr/local/omc/htdocs/front