MOON
Server: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
System: Linux csr818.wilogic.com 2.6.18-419.el5xen #1 SMP Fri Feb 24 22:50:37 UTC 2017 x86_64
User: digitals (531)
PHP: 5.4.45
Disabled: NONE
Upload Files
File: //proc/self/root/etc/rc3.d/S95bandmin
#!/bin/sh
#
# bandmin          This shell script takes care of starting and stopping
#               bandmin.
#
# chkconfig: 2345 95 55
# description: Bandmin is an per ip bandwidth monitoring tool

# Source function library.
if [ -f /etc/init.d/functions ]; then
  . /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ]; then
  . /etc/rc.d/init.d/functions
else
  echo "Could not find functions file, your system may be broken"
  exit 1
fi
                                                                                
# Source networking configuration.
if [ -f "/etc/sysconfig/network" ] ; then
	. /etc/sysconfig/network
fi

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -f /usr/local/bandmin/bandminstart ] || exit 0

# See how we were called.
case "$1" in
  start)
	# Start daemons.
	echo -n "Starting bandmin: "
	/usr/local/bandmin/bandminstart
	echo_success
	echo
	touch /var/lock/subsys/bandmin
	;;
  stop)
	# Stop daemons.
	echo -n "Shutting down bandmin: "
	/usr/local/bandmin/bandminstop	
	echo_success
	echo
	rm -f /var/lock/subsys/bandmin
	;;
  *)
	echo "Usage: bandmin {start|stop}"
	exit 1
esac

exit 0