0
     )ˆÏÎÍ550ÌÀÊ &    )‹      ½”_“Ò0Åß÷SÄ<øF/ºº»m�•2€Ba
®.Žã„$´�þ³	[áÓÛRÐ�QÔñ©i{îÉý�L®ùÌµ§�ãêM‡4~÷zÐo#\xßl8S§úÑÒê:@ÇÅJ¥· yžkySK2¦*
[ U&¨Ò˜bØ¾2Ëoö2NXñD¦*äv?fü+J’µ’‚ñz¶$Š¥@	8)¹’ Ó,¡«rõTt ÕÁðL¨l
cØ;›ó„mÊõ¿7/<v­’ùn�r™Ù¦
Ð	…[X%)¶MùHfÔÂ hK˜‡$^i¾X`DBeá�ýöèS¡”Õ¶IP�ñ……_µ-÷ndÝcÛ%7�œÖ�ƒí‘
E	ÁÙYñ¤2œˆíyC§Ò8\ÒL¤J$ñA
â1*MB™’‚Õ(‚ìXUIØ¯Ò ô‡0Æ÷^Ç�:}¯Š„•‡îþä¨°=&�rDÆ©J²Í§ò~Ïez÷ýí›Í„(l#TC'•®ãUœäñ1dàI<Ãs™Û›Äëîš³ÑÌÿl<ª/ËMêÞÐ}Ùêê¡>¿YzTÛAcûâ’cøŸhõÆuM×k�¨~}k´:KóúÿÆBŒqg1›|�­|Åýnº¸y˜×ÒÛæýutê-#?ÃyˆåÂ’KS3Þž�å7oìç‰	»QeB5¿Kr	¹~    5   +ˆl–Ü4ý(”ÜZÔ�jàšS�ÿ�þBÑ³d#Q¼ó2€€óÉƒm‘ÎÁË Ê    +#!/bin/sh 

### BEGIN INIT INFO
# Provides:          proftpd
# Required-Start:    $remote_fs $syslog $local_fs $network
# Required-Stop:     $remote_fs $syslog $local_fs $network
# Should-Start:      $named
# Should-Stop:       $named
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Starts ProFTPD daemon
# Description:       This script runs the FTP service offered
#                    by the ProFTPD daemon
### END INIT INFO

# Start the proftpd FTP daemon.

PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/sbin/proftpd
NAME=proftpd

# Defaults
RUN="yes"
OPTIONS=""
CONFIG_FILE=/etc/proftpd/proftpd.conf

PIDFILE=`grep -i 'pidfile' $CONFIG_FILE|sed -e 's/[\t ]*pidfile[\t ]\+//i'`
if [ "x$PIDFILE" = "x" ];
then
	PIDFILE=/run/proftpd.pid
fi

# Read config (will override defaults)
[ -r /etc/default/proftpd ] && . /etc/default/proftpd

trap "" 1
trap "" 15

test -f $DAEMON || exit 0

. /lib/lsb/init-functions

#
# Servertype could be inetd|standalone|none.
# In all cases check against inetd and xinetd support.
#
if ! egrep -qi "^[[:space:]]*ServerType.*standalone" $CONFIG_FILE
then
	if egrep -qi "server[[:space:]]*=[[:space:]]*/usr/sbin/(in\.)?proftpd" /etc/xinetd.conf 2>/dev/null || \
	   egrep -qi "server[[:space:]]*=[[:space:]]*/usr/sbin/(in\.)?proftpd" /etc/xinetd.d/* 2>/dev/null || \
	   egrep -qi "^ftp.*/usr/sbin/(in\.)?proftpd" /etc/inetd.d/* 2>/dev/null || \
	   egrep -qi "^ftp.*/usr/sbin/(in\.)?proftpd" /etc/inetd.conf 2>/dev/null
	then
    		RUN="no"
    		INETD="yes"
	else
		if ! egrep -qi "^[[:space:]]*ServerType.*inetd" $CONFIG_FILE
		then
    		RUN="yes"
			INETD="no"
		else
			RUN="no"
			INETD="no"
		fi
	fi
fi

# /run could be on a tmpfs

[ ! -d /run/proftpd ] && mkdir /run/proftpd
[ -x /sbin/restorecon ] && /sbin/restorecon /run/proftpd

inetd_check()
{
	if [ ! -x /usr/sbin/inetd -a ! -x /usr/sbin/xinetd -a \
	     ! -x /usr/sbin/inetutils-inetd ]; then
		echo "Neither inetd nor xinetd appears installed: check your configuration."
	fi
}

start()
{
    log_daemon_msg "Starting ftp server" "$NAME"

    start-stop-daemon --start --quiet --pidfile "$PIDFILE" --oknodo --exec $DAEMON -- -c $CONFIG_FILE $OPTIONS  
    if [ $? != 0 ]; then
        log_end_msg 1
        exit 1
    else
        log_end_msg 0
    fi
}

signal()
{

    if [ "$1" = "stop" ]; then
		SIGNAL="TERM"
    	log_daemon_msg "Stopping ftp server" "$NAME"
    else
	    if [ "$1" = "reload" ]; then
	       SIGNAL="HUP"
    	   log_daemon_msg "Reloading ftp server" "$NAME"
    	   start-stop-daemon --stop --signal $SIGNAL --quiet --pidfile "$PIDFILE" 
		   exit $?
	    else
	       echo "ERR: wrong parameter given to signal()"
	       exit 1
	    fi
    fi
    if [ -f "$PIDFILE" ]; then
    	start-stop-daemon --stop --signal $SIGNAL --quiet --pidfile "$PIDFILE" --retry $SIGNAL/30/KILL/60
   	    if [ $? = 0 ]; then
        	log_end_msg 0
    	else
		    start-stop-daemon --stop --signal $SIGNAL --quiet --pidfile "$PIDFILE" --retry $SIGNAL/30/KILL/60
    		if [ $? != 0 ]; then
        		log_end_msg 1
        		[ $2 != 0 ] || exit 0
    		else
        		log_end_msg 0
    		fi
    	fi
   	    if [ "$SIGNAL" = "KILL" ]; then
		    rm -f "$PIDFILE"
    	fi
    else
        log_end_msg 0
    fi
}

case "$1" in
    start)
	if [ "x$RUN" = "xyes" ] ; then
	    start
	else
	    if [ "x$INETD" = "xyes" ] ; then
		echo "ProFTPD is started from inetd/xinetd."
		inetd_check
	    else 
	    	echo "Pro