Gentoo Logo
Gentoo Spaceship




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
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Bernard Cafarelli (voyageur)" <voyageur@g.o>
Subject: gentoo-x86 commit in net-ftp/pure-ftpd/files: pure-ftpd.rc7
Date: Mon, 23 Nov 2009 12:59:07 +0000
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
}





Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in net-ftp/pure-ftpd: ChangeLog pure-ftpd-1.0.26.ebuild
Next by thread:
gentoo-x86 commit in net-ftp/pure-ftpd/files: pure-ftpd.rc7
Previous by date:
gentoo-x86 commit in net-ftp/pure-ftpd: ChangeLog pure-ftpd-1.0.26.ebuild
Next by date:
gentoo-x86 commit in dev-libs/openssl: ChangeLog openssl-0.9.8l-r1.ebuild


Updated Jun 26, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.