Server IP : 103.53.40.154 / Your IP : 3.147.65.47 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /etc/init.d/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
#!/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