403Webshell
Server IP : 134.236.49.22  /  Your IP : 216.73.216.114
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /etc/rc.d/rc4.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/rc.d/rc4.d/S11portreserve
#!/bin/sh
#
# portreserve  This script starts and stops the TCP port reserver
# Originally written by Tim Waugh from Red Hat
# Adapted to Debian by Javier Fernandez-Sanguino
#
# chkconfig: 2345 11 89
# description: TCP port reservation utility
#
### BEGIN INIT INFO
# Provides:          portreserve
# Default-Start:     2 3 4 5
# Default-Stop:      0 6
# Short-Description: Port reservation utility
# Description:       Portreserve is a TCP port reservation utility
#                    that can be use to prevent RPC services from 
#                    picking up well-known reserved ports.
### END INIT INFO


DAEMON=/sbin/portreserve
test -f $DAEMON || exit 0

. /etc/rc.d/init.d/functions

NAME=`basename $DAEMON`
PIDFILE=/var/run/$NAME.pid
prog=$NAME

registered_services()
{
# Determine if there are any registered services, we return true
# if the directory exists and there are files that will _not_ be 
# ignored by portreserve (i.e. files with '~' or '.' in their names)
	if [ ! -d /etc/portreserve ] ; then
		return 1
	fi
	if [ -z "`find /etc/portreserve \! -name "*~" -a \! -name "*.*" -type f`" ] ; then
		return 1
	fi
	return 0
}


# See how we were called.
case "$1" in
  start)
	echo -n $"Starting $prog: "
	if registered_services ; then
	    daemon $DAEMON
	    RETVAL=$?
	    echo
	else
            echo $"(not starting, no services registered)"
	    RETVAL=0
	fi
        ;;
  stop)
        # Stop daemon.
	echo -n $"Stopping $prog: "
	[ -f "$PIDFILE" ] && killproc $DAEMON
	RETVAL=$?
	rm -f "$PIDFILE"
	echo
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  condrestart|try-restart)
	[ -f "$PIDFILE" ] && $0 restart || :
	;;
  reload)
	# Not supported
	;;
  force-reload)
	$0 restart
	;;
  status)
	status -p "$PIDFILE" $NAME
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|status}"
	exit 3
esac

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit