host-agent 업데이트 1.2.5
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
25
roles/one_agent/files/host/script/systemctl_disable.sh
Executable file
25
roles/one_agent/files/host/script/systemctl_disable.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
SYSTEMCTL=$(which systemctl 2> /dev/null)
|
||||
SERVICE=$(which service 2> /dev/null)
|
||||
CHKCONFIG=$(which chkconfig 2> /dev/null)
|
||||
|
||||
|
||||
if [ -n "${SYSTEMCTL}" ]; then
|
||||
systemctl stop exem-host-agent
|
||||
systemctl disable exem-host-agent
|
||||
systemctl daemon-reload
|
||||
|
||||
if [ -e "/etc/systemd/system/exem-host-agent.service" ]; then
|
||||
rm -f /etc/systemd/system/exem-host-agent.service
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
|
||||
if [ -e "/etc/systemd/system/default.target.wants/exem-host-agent.service" ]; then
|
||||
rm -f /etc/systemd/system/default.target.wants/exem-host-agent.service
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
|
||||
echo "exem-host-agent is disabled"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user