Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 60776 Details for
Bug 54228
vsftpd init script doesn't support ipv6 only
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
fix
vsftpd.init.d (text/plain), 1.56 KB, created by
Florian E.J. Fruth
on 2005-06-07 08:33:49 UTC
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Florian E.J. Fruth
Created:
2005-06-07 08:33:49 UTC
Size:
1.56 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 2003-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License, v2 ># $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/files/vsftpd.init.d,v 1.4 2004/10/01 03:16:13 jforman Exp $ > >depend() { > need net > use dns logger >} > >checkconfig() { > if [ ! -e ${VSFTPD_CONF} ] ; then > eerror "Please setup ${VSFTPD_CONF} before starting vsftpd" > eerror "There are sample configurations in /usr/share/doc/vsftpd" > return 1 > else > ( grep -q "^background=YES" ${VSFTPD_CONF} && grep -q "^listen=YES" ${VSFTPD_CONF} && grep -q "^listen_ipv6=YES" ${VSFTPD_CONF} ) && { > eerror "${VSFTPD_CONF} must contain background=YES and ONLY ONE listen command for ipv4 (listen=YES) OR ipv6 (listen_ipv6=YES) " > eerror "in order to start vsftpd from /etc/init.d/vsftpd" > return 2 > } > ( grep -q "^background=YES" ${VSFTPD_CONF} && grep -q "^listen=YES" ${VSFTPD_CONF} ) && return 0 || { > ( grep -q "^background=YES" ${VSFTPD_CONF} && grep -q "^listen_ipv6=YES" ${VSFTPD_CONF} ) && return 0 || { > eerror "${VSFTPD_CONF} must contain background=YES and listen=YES" > eerror "in order to start vsftpd from /etc/init.d/vsftpd" > return 2 > } > eerror "${VSFTPD_CONF} must contain background=YES and listen=YES" > eerror "in order to start vsftpd from /etc/init.d/vsftpd" > return 2 > } > fi >} > >start() { > checkconfig || return 1 > ebegin "Starting vsftpd" > start-stop-daemon --start --quiet \ > --exec /usr/sbin/vsftpd ${VSFTPD_CONF} > eend $? >} > >stop() { > ebegin "Stopping vsftpd" > start-stop-daemon --stop --quiet --exec /usr/sbin/vsftpd > 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 Raw
Actions:
View
Attachments on
bug 54228
: 60776