1
0
This commit is contained in:
2023-09-13 18:08:00 +08:00
parent 83baadade5
commit f914b2f81c
2 changed files with 10 additions and 5 deletions

View File

@@ -1,10 +1,11 @@
# !/bin/sh # !/bin/sh
echo "" echo ""
echo "* To start/stop/restart omc service, please run:" echo "* To start/stop/restart/status omc service, please run:"
echo " sudo systemctl start/stop/restart restagent.service" echo " sudo systemctl start/stop/restart/status restagent.service"
echo " sudo systemctl start/stop/restart crontask.service" echo " sudo systemctl start/stop/restart/status crontask.service"
echo " sudo systemctl start/stop/restart sshsvc.service" echo " sudo systemctl start/stop/restart/status sshsvc.service"
echo " sudo systemctl start/stop/restart captrace.service" echo " sudo systemctl start/stop/restart/status captrace.service"
echo " sudo systemctl start/stop/restart/status adb.service"
echo " or run: " echo " or run: "
echo " sudo /usr/local/omc/bin/omcsvc.sh start/stop/restart/status" echo " sudo /usr/local/omc/bin/omcsvc.sh start/stop/restart/status"
echo "" echo ""
@@ -13,6 +14,7 @@ systemctl enable restagent.service
systemctl enable crontask.service systemctl enable crontask.service
systemctl enable sshsvc.service systemctl enable sshsvc.service
systemctl enable captrace.service systemctl enable captrace.service
systemctl enable adb.service
systemctl daemon-reload systemctl daemon-reload
if ! id -u omc >/dev/null 2>&1 ; then if ! id -u omc >/dev/null 2>&1 ; then
useradd -d /opt/omc -m -s /bin/bash -pomc123 omc; useradd -d /opt/omc -m -s /bin/bash -pomc123 omc;

View File

@@ -5,6 +5,8 @@ systemctl stop restagent.service
systemctl stop crontask.service systemctl stop crontask.service
systemctl stop sshsvc.service systemctl stop sshsvc.service
systemctl stop captrace.service systemctl stop captrace.service
systemctl stop adb.service
#rm -rf /usr/local/omc #rm -rf /usr/local/omc
#rm -rf /etc/nginx/conf.d/omc.conf #rm -rf /etc/nginx/conf.d/omc.conf
@@ -12,4 +14,5 @@ systemctl disable restagent.service
systemctl disable crontask.service systemctl disable crontask.service
systemctl disable sshsvc.service systemctl disable sshsvc.service
systemctl disable captrace.service systemctl disable captrace.service
systemctl disable adb.service
systemctl daemon-reload systemctl daemon-reload