1
0

solve conflict file

This commit is contained in:
zhangsz
2024-10-25 14:58:42 +08:00
parent 5cdb82297a
commit 3649afe328
1533 changed files with 77808 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
#!/bin/bash
ProcList="restagent crontask sshsvc captrace"
ProcListDesc="crontask sshsvc captrace restagent"
BinDir=/usr/local/omc/bin
case "$1" in
start)
for procName in $ProcListDesc;do
echo -n "Starting $procName process ... "
systemctl start $procName
if [ $? = 0 ]; then
echo "done"
fi
sleep 1
done
;;
status)
for procName in $ProcList;do
systemctl status $procName
done
;;
stop)
for procName in $ProcList;do
echo -n "Stopping $procName process ... "
systemctl stop $procName
if [ $? = 0 ]; then
echo "done"
fi
done
;;
restart)
$0 stop
sleep 1
$0 start
;;
version)
for procName in $ProcList;do
$BinDir/$procName --version
done
;;
*)
echo "OMC service"
echo "Usage: $0 start|status|stop|restart|version"
;;
esac