fix: deb卸载systemctl操作判断
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user