Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 10797 Details for
Bug 19415
Extending oftpd init script configuration options.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
changes the oftpd init script so that all options, including new ones, are set via `/etc/conf.d/oftpd'
oftpd.rc6.patch (text/plain), 1.01 KB, created by
James Michael Fultz
on 2003-04-17 17:46:41 UTC
(
hide
)
Description:
changes the oftpd init script so that all options, including new ones, are set via `/etc/conf.d/oftpd'
Filename:
MIME Type:
Creator:
James Michael Fultz
Created:
2003-04-17 17:46:41 UTC
Size:
1.01 KB
patch
obsolete
>--- oftpd.rc6.orig 2003-04-16 07:13:49.000000000 -0400 >+++ oftpd.rc6 2003-04-17 17:40:45.000000000 -0400 >@@ -3,22 +3,29 @@ > # Distributed under the terms of the GNU General Public License, v2 or later > # $Header: /home/cvsroot/gentoo-x86/net-ftp/oftpd/files/oftpd.rc6,v 1.4 2003/02/14 23:00:26 vapier Exp $ > >+#NB: Config is in /etc/conf.d/oftpd >+ > depend() { > need net > } > > checkconfig() { > if [ -z "$FTPUSER" ] || [ -z "$FTPROOT" ] ; then >- eerror "You need to setup FTPUSER and FTPROOT in /etc/rc.conf" >+ eerror "You need to setup FTPUSER and FTPROOT in /etc/conf.d/oftpd" > return 1 > fi > } > > start() { > checkconfig || return 1 >+ local params="" >+ [ -n "$PORT" ] && params="$params -p $PORT" >+ [ -n "$IFACE" ] && params="$params -i $IFACE" >+ [ -n "$MAXCLIENTS" ] && params="$params -m $MAXCLIENTS" >+ [ -n "$OFTPD_OPTS" ] && params="$params $OFTPD_OPTS" > ebegin "Starting oftpd" > start-stop-daemon --start --quiet --exec /usr/sbin/oftpd \ >- -- ${FTPUSER} ${FTPROOT} >+ -- ${params} ${FTPUSER} ${FTPROOT} > eend $? > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19415
:
10731
|
10732
| 10797 |
10798