Bug 544251

Summary: /etc/rc.d/init.d/vsftpd does not start more than one daemon
Product: [Fedora] Fedora Reporter: Vsevolod Volkov <home+fedora>
Component: vsftpdAssignee: Jiri Skala <jskala>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 12CC: aglotov, jskala, kirill, mnagy
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: vsftpd-2.2.2-3.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 574038 833093 (view as bug list) Environment:
Last Closed: 2010-04-27 02:32:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 517000, 574038, 833093    

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.