diff --git a/vsftpd.init b/vsftpd.init index 8a7c51c..c9434b1 100755 --- a/vsftpd.init +++ b/vsftpd.init @@ -1,5 +1,14 @@ #!/bin/bash # +### BEGIN INIT INFO +# Provides: vsftpd +# Required-Start: $local_fs $network $named $remote_fs $syslog +# Required-Stop: $local_fs $network $named $remote_fs $syslog +# Short-Description: Very Secure Ftp Daemon +# Description: vsftpd is a Very Secure FTP daemon. It was written completely from +# scratch +### END INIT INFO + # vsftpd This shell script takes care of starting and stopping # standalone vsftpd. # @@ -15,19 +24,21 @@ # Source networking configuration. . /etc/sysconfig/network -# Check that networking is up. -[ ${NETWORKING} = "no" ] && exit 0 - -[ -x /usr/sbin/vsftpd ] || exit 0 - RETVAL=0 prog="vsftpd" start() { # Start daemons. + # Check that networking is up. + [ ${NETWORKING} = "no" ] && exit 1 + + [ -x /usr/sbin/vsftpd ] || exit 1 + if [ -d /etc/vsftpd ] ; then - for i in `ls /etc/vsftpd/*.conf`; do + 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 diff --git a/vsftpd.spec b/vsftpd.spec index be9c542..bb27bca 100644 --- a/vsftpd.spec +++ b/vsftpd.spec @@ -3,7 +3,7 @@ Summary: Very Secure Ftp Daemon Name: vsftpd Version: 2.0.6 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL Group: System Environment/Daemons URL: http://vsftpd.beasts.org/ @@ -158,6 +158,10 @@ fi %{_var}/ftp %changelog +* Mon Feb 25 2008 Martin Nagy - 2.0.6-2 +- fix init script (#431452) +- make the init script LSB compliant (#247093) + * Fri Feb 22 2008 Martin Nagy - 2.0.6-1 - rebase for new upstream version - remove patches that were fixed in upstream: kickline, confspell, anon_umask