KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : andertr9 ( 1047)
PHP Version : 8.2.18
Disable Function : NONE
Directory :  /etc/rc6.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //etc/rc6.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

Anon7 - 2021