403Webshell
Server IP : 67.43.7.42  /  Your IP : 216.73.216.61
Web Server : Apache
System : Linux host.isabellascookies.com 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : isabella ( 503)
PHP Version : 5.5.38
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /etc/rc3.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/rc3.d/K89rdisc
#!/bin/bash
#
# $Id$
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?

Youez - 2016 - github.com/yon3zu
LinuXploit