korsygfhrtzangaiide
Elepffwdsff
/
etc
/
rc1.d
/
Upload FileeE
HOME
#!/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