MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 52.15.68.97
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/lldpd.d/../sysconfig/../egl/../tuned/../X11/../rc4.d/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //etc/lldpd.d/../sysconfig/../egl/../tuned/../X11/../rc4.d/S01proc-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

MMCT - 2023