d
This commit is contained in:
@@ -1,14 +1,18 @@
|
|||||||
# !/bin/sh
|
# !/bin/sh
|
||||||
echo ""
|
echo ""
|
||||||
echo "* To start/stop/restart rest agent service run:"
|
echo "* To start/stop/restart omc service, please run:"
|
||||||
echo " sudo systemctl start/stop/restart restagent.service"
|
echo " sudo systemctl start/stop/restart restagent.service"
|
||||||
echo " sudo systemctl start/stop/restart crontask.service"
|
echo " sudo systemctl start/stop/restart crontask.service"
|
||||||
echo " sudo systemctl start/stop/restart sshsvc.service"
|
echo " sudo systemctl start/stop/restart sshsvc.service"
|
||||||
|
echo " sudo systemctl start/stop/restart captrace.service"
|
||||||
|
echo " or run: "
|
||||||
|
echo " sudo /usr/local/omc/bin/omcsvc.sh start/stop/restart/status"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
systemctl enable restagent.service
|
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 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;
|
||||||
|
|||||||
@@ -4,9 +4,11 @@
|
|||||||
systemctl stop restagent.service
|
systemctl stop restagent.service
|
||||||
systemctl stop crontask.service
|
systemctl stop crontask.service
|
||||||
systemctl stop sshsvc.service
|
systemctl stop sshsvc.service
|
||||||
|
systemctl stop captrace.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
|
||||||
systemctl disable restagent.service
|
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 daemon-reload
|
systemctl daemon-reload
|
||||||
Reference in New Issue
Block a user