Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-commits
voyageur 09/11/23 12:59:07
Added: pure-ftpd.rc7
Log:
Version bump and updated init script by polynomial-c, bug #293696
(Portage version: 2.2_rc51/cvs/Linux x86_64)
Revision Changes Path
1.1 net-ftp/pure-ftpd/files/pure-ftpd.rc7
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/pure-ftpd/files/pure-ftpd.rc7?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/pure-ftpd/files/pure-ftpd.rc7?rev=1.1&content-type=text/plain
Index: pure-ftpd.rc7
===================================================================
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/pure-ftpd/files/pure-ftpd.rc7,v 1.1 2009/11/23 12:59:07 voyageur Exp $
depend() {
need net
}
checkconfig() {
if [ -z "$IS_CONFIGURED" ] ; then
eerror "You need to setup /etc/conf.d/pure-ftpd first!"
return 1
fi
}
start() {
checkconfig || return 1
UPSCRIPT=""
OKNODO=""
if [ -n "$UPLOADSCRIPT" ] ; then
UPSCRIPT="--uploadscript"
OKNODO="--oknodo"
fi
ebegin "Starting Pure-FTPd"
start-stop-daemon --start --quiet --pidfile /var/run/pure-ftpd.pid $OKNODO --exec /usr/sbin/pure-ftpd -- --pidfile /var/run/pure-ftpd.pid $SERVER $MAX_CONN $MAX_CONN_IP $DAEMON $DISK_FULL $USE_NAT $AUTH $LOG $TIMEOUT $CHARCONV $MISC_OTHER $UPSCRIPT
result=$?
if [ $result -ne 0 ] ; then
eend 1 "Could not launch Pure-FTPd"
else
eend $result
if [ -n "$UPLOADSCRIPT" ] ; then
ebegin "Starting Pure-FTPd upload script"
start-stop-daemon --start --quiet --make-pidfile --pidfile /var/run/pure-uploadscript.pid --exec /usr/sbin/pure-uploadscript -- -B -r $UPLOADSCRIPT
eend $?
fi
fi
}
stop() {
ebegin "Stopping Pure-FTPd"
start-stop-daemon --stop --retry 20 --quiet --pidfile /var/run/pure-ftpd.pid
eend $?
if [ -n "$UPLOADSCRIPT" ] ; then
ebegin "Stopping Pure-FTPd upload script"
start-stop-daemon --stop --retry 20 --quiet --pidfile /var/run/pure-uploadscript.pid
eend $?
fi
}
|
|