Bug 544251 - /etc/rc.d/init.d/vsftpd does not start more than one daemon
Summary: /etc/rc.d/init.d/vsftpd does not start more than one daemon
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: vsftpd
Version: 12
Hardware: i686
OS: Linux
low
high
Target Milestone: ---
Assignee: Jiri Skala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 517000 574038 833093
TreeView+ depends on / blocked
 
Reported: 2009-12-04 11:34 UTC by Vsevolod Volkov
Modified: 2014-11-09 22:32 UTC (History)
4 users (show)

Fixed In Version: vsftpd-2.2.2-3.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 574038 833093 (view as bug list)
Environment:
Last Closed: 2010-04-27 02:32:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vsevolod Volkov 2009-12-04 11:34:59 UTC
Description of problem:
Script /etc/rc.d/init.d/vsftpd starts only one ftp daemon even if there are more than one configuration file in /etc/vsftpd.


Version-Release number of selected component (if applicable):
2.2.0-5.fc12


How reproducible:
Create additional configuration file in /etc/vsftpd for other site and restart vsftpd.


Steps to Reproduce:
1. Create additional configuration file in /etc/vsftpd.
2. Restart vsftpd.


Actual results:
Only one ftp daemon will be started with first alphabetically configuration file.


Expected results:
Two ftp daemons shuold be started.


Additional info:

Comment 1 kirill 2009-12-14 08:01:16 UTC
        if [ -d /etc/vsftpd ] ; then
                CONFS=`ls /etc/vsftpd/*.conf 2>/dev/null`
                [ -z "$CONFS" ] && exit 6
                for i in $CONFS; do
                        site=`basename $i .conf`
                        echo -n $"Starting $prog for $site: "
                        daemon /usr/sbin/vsftpd $i
                        RETVAL=$?
                        echo
                        if [ $RETVAL -eq 0 ]; then
                                touch /var/lock/subsys/$prog
why? ---------->                break
                        else
                                if [ -f /var/lock/subsys/$prog ]; then
                                        RETVAL=0
why? ---------->                        break
                                fi
                        fi
                done
        else
                RETVAL=1
        fi
        return $RETVAL

Comment 2 Fedora Update System 2010-03-16 09:41:21 UTC
vsftpd-2.2.2-3.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/vsftpd-2.2.2-3.fc12

Comment 3 Fedora Update System 2010-03-16 23:18:37 UTC
vsftpd-2.2.2-3.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update vsftpd'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/vsftpd-2.2.2-3.fc12

Comment 4 Fedora Update System 2010-04-27 02:32:26 UTC
vsftpd-2.2.2-3.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.