403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
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 :  /proc/self/root/etc/rc1.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/etc/rc1.d/K12dc_client
#!/bin/bash
#
# distcache    Startup script for the Distcache SSL Session Cache Client Proxy
#
# chkconfig: - 88 12
# description: Distcache is a Distributed SSL Session Cache Client Proxy.
# processname: dc_client
# config: /etc/sysconfig/distcache
# pidfile: /var/run/dc_client.pid

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/distcache ]; then
        . /etc/sysconfig/distcache
fi

port=${PORT-5555}
socket=${SOCKET-/var/cache/mod_ssl/distcache}
server=${SERVER-localhost}:${port}
owner=${OWNER-apache}

prog=dc_client
RETVAL=0
runas=distcache
dc_client=/usr/bin/dc_client
pidfile=/var/run/dc_client.pid

OPTIONS="-daemon -pidfile ${pidfile} -listen UNIX:${socket} \
         -sockowner ${owner} -sockperms 0600 -user ${runas} -server IP:${server}"

start() {
        echo -n $"Starting $prog: "
        daemon $dc_client $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch /var/lock/subsys/dc_client
        return $RETVAL
}
stop() {
	echo -n $"Stopping $prog: "
	killproc $dc_client
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/dc_client /var/run/dc_client.pid
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status $dc_client
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart)
	if [ -f /var/run/dc_client.pid ] ; then
		stop
		start
	fi
	;;
  reload)
        reload
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|status|help}"
	exit 1
esac

exit $RETVAL

Youez - 2016 - github.com/yon3zu
LinuXploit