?
Current Path : /etc/rc.d/rc2.d/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //etc/rc.d/rc2.d/K99proc-monitor |
#!/bin/bash # proc-monitor daemon # chkconfig: 345 1 99 # description: proc-monitor daemon # processname: proc-monitor NAME=proc-monitor DESC="Process resource monitor" DAEMON_PATH="/opt/eig_linux/bin/$NAME" PIDFILE="/var/run/$NAME.pid" SCRIPTNAME="/etc/init.d/$NAME" RETVAL=0 case "$1" in start) ${DAEMON_PATH} --start RETVAL=$? ;; status) ${DAEMON_PATH} --status RETVAL=$? ;; stop) ${DAEMON_PATH} --stop RETVAL=$? ;; restart) $0 stop $0 start RETVAL=$? ;; condrestart) if ${DAEMON_PATH} --status &>/dev/null; then $0 stop $0 start RETVAL=$? fi ;; condstop) if ${DAEMON_PATH} --status &>/dev/null; then $0 stop RETVAL=$? fi ;; *) echo "Usage: $0 {status|start|stop|restart|condrestart}" exit 1 esac exit $RETVAL