diff options
author | Donny Davies <woodchip@gentoo.org> | 2002-05-04 03:42:50 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2002-05-04 03:42:50 +0000 |
commit | b0ec84600c18f9b95b53fbbada48a57d9be1b56d (patch) | |
tree | 3a1a324a193a2624734cf3f9fad7ca422aaf9373 /net-ftp/oftpd/files | |
parent | added LICENSE, SLOT, $Headers. (diff) | |
download | historical-b0ec84600c18f9b95b53fbbada48a57d9be1b56d.tar.gz historical-b0ec84600c18f9b95b53fbbada48a57d9be1b56d.tar.bz2 historical-b0ec84600c18f9b95b53fbbada48a57d9be1b56d.zip |
added LICENSE, SLOT, $Headers.
Diffstat (limited to 'net-ftp/oftpd/files')
-rw-r--r-- | net-ftp/oftpd/files/digest-oftpd-0.3.6-r6 | 1 | ||||
-rw-r--r-- | net-ftp/oftpd/files/digest-oftpd-0.3.6-r7 (renamed from net-ftp/oftpd/files/digest-oftpd-0.3.6) | 0 | ||||
-rw-r--r-- | net-ftp/oftpd/files/oftpd.rc5 | 31 | ||||
-rw-r--r-- | net-ftp/oftpd/files/oftpd.rc6 | 27 |
4 files changed, 14 insertions, 45 deletions
diff --git a/net-ftp/oftpd/files/digest-oftpd-0.3.6-r6 b/net-ftp/oftpd/files/digest-oftpd-0.3.6-r6 deleted file mode 100644 index 22821daa64be..000000000000 --- a/net-ftp/oftpd/files/digest-oftpd-0.3.6-r6 +++ /dev/null @@ -1 +0,0 @@ -MD5 78b4139bb0108297b9814564db986852 oftpd-0.3.6.tar.gz 77201 diff --git a/net-ftp/oftpd/files/digest-oftpd-0.3.6 b/net-ftp/oftpd/files/digest-oftpd-0.3.6-r7 index 22821daa64be..22821daa64be 100644 --- a/net-ftp/oftpd/files/digest-oftpd-0.3.6 +++ b/net-ftp/oftpd/files/digest-oftpd-0.3.6-r7 diff --git a/net-ftp/oftpd/files/oftpd.rc5 b/net-ftp/oftpd/files/oftpd.rc5 deleted file mode 100644 index 1612f482fff9..000000000000 --- a/net-ftp/oftpd/files/oftpd.rc5 +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -#RCUPDATE:2 3 4:75:This line is required for script management - -. /etc/rc.d/config/functions -. /etc/rc.d/config/basic - -SERVICE="oftpd" -opts="start stop restart" -PIDFILE=/var/run/oftpd.pid -EXE=/usr/sbin/oftpd - -start() { - - ebegin "Starting $SERVICE" - start-stop-daemon --start --quiet --exec $EXE -- $FTPUSER $FTPROOT - eend $? "Started $SERVICE." "Error starting $SERVICE." -} - -stop() { - - ebegin "Stopping $SERVICE" - start-stop-daemon --stop --quiet -n $SERVICE --exec $EXE - eend $? "Stopped $SERVICE." "Error stopping $SERVICE." -} - -restart() { - stop - start -} - -doservice ${@} diff --git a/net-ftp/oftpd/files/oftpd.rc6 b/net-ftp/oftpd/files/oftpd.rc6 index bc019797034e..71f939e5cc91 100644 --- a/net-ftp/oftpd/files/oftpd.rc6 +++ b/net-ftp/oftpd/files/oftpd.rc6 @@ -1,28 +1,29 @@ #!/sbin/runscript # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/net-ftp/oftpd/files/oftpd.rc6,v 1.2 2001/12/06 20:17:02 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-ftp/oftpd/files/oftpd.rc6,v 1.3 2002/05/04 03:42:50 woodchip Exp $ depend() { - need net + need net } checkconfig() { - if [ -z "$FTPUSER" ] || [ -z "$FTPROOT" ] ; then - eerror "You need to setup FTPUSER and FTPROOT in /etc/rc.conf" - return 1 - fi + if [ -z "$FTPUSER" ] || [ -z "$FTPROOT" ] ; then + eerror "You need to setup FTPUSER and FTPROOT in /etc/rc.conf" + return 1 + fi } start() { - checkconfig || return 1 - ebegin "Starting oftpd" - start-stop-daemon --start --quiet --exec /usr/sbin/oftpd -- $FTPUSER $FTPROOT - eend $? + checkconfig || return 1 + ebegin "Starting oftpd" + start-stop-daemon --start --quiet --exec /usr/sbin/oftpd \ + -- ${FTPUSER} ${FTPROOT} + eend $? } stop() { - ebegin "Stopping oftpd" - start-stop-daemon --stop --quiet --exec /usr/sbin/oftpd - eend $? + ebegin "Stopping oftpd" + start-stop-daemon --stop --quiet --exec /usr/sbin/oftpd + eend $? } |