exemONE Agent Installer 작성

This commit is contained in:
ByeonJungHun
2024-03-15 13:14:57 +09:00
commit 62999578d9
33 changed files with 461 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# Startup script for exemONE exem-host-agent
# chkconfig: 345 50 50
# description: exemONE exem-host-agent
# processname: exem-host-agent
# directory : EXEM_HOST_HOME={{ EXEM_HOME }}
source /etc/profile
case "$1" in
start)
echo "Starting exem-host-agent: "
{{ EXEM_HOME }}/host/script/binary_start.sh
;;
stop)
echo "Shutting down exem-host-agent: "
{{ EXEM_HOME }}/host/script/binary_stop.sh
;;
restart)
echo "Restarting exem-host-agent: "
{{ EXEM_HOME }}/host/script/binary_stop.sh
{{ EXEM_HOME }}/host/script/binary_start.sh
;;
*)
echo "Usage: service exem-host-agent { start | stop | restart }"
exit 1
esac
exit 0