- fix init script (#431452)
- make the init script LSB compliant (#247093)
This commit is contained in:
parent
520f362b24
commit
87f467247f
23
vsftpd.init
23
vsftpd.init
@ -1,5 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/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
|
# vsftpd This shell script takes care of starting and stopping
|
||||||
# standalone vsftpd.
|
# standalone vsftpd.
|
||||||
#
|
#
|
||||||
@ -15,19 +24,21 @@
|
|||||||
# Source networking configuration.
|
# Source networking configuration.
|
||||||
. /etc/sysconfig/network
|
. /etc/sysconfig/network
|
||||||
|
|
||||||
# Check that networking is up.
|
|
||||||
[ ${NETWORKING} = "no" ] && exit 0
|
|
||||||
|
|
||||||
[ -x /usr/sbin/vsftpd ] || exit 0
|
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
prog="vsftpd"
|
prog="vsftpd"
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
# Start daemons.
|
# Start daemons.
|
||||||
|
|
||||||
|
# Check that networking is up.
|
||||||
|
[ ${NETWORKING} = "no" ] && exit 1
|
||||||
|
|
||||||
|
[ -x /usr/sbin/vsftpd ] || exit 1
|
||||||
|
|
||||||
if [ -d /etc/vsftpd ] ; then
|
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`
|
site=`basename $i .conf`
|
||||||
echo -n $"Starting $prog for $site: "
|
echo -n $"Starting $prog for $site: "
|
||||||
daemon /usr/sbin/vsftpd $i
|
daemon /usr/sbin/vsftpd $i
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Summary: Very Secure Ftp Daemon
|
Summary: Very Secure Ftp Daemon
|
||||||
Name: vsftpd
|
Name: vsftpd
|
||||||
Version: 2.0.6
|
Version: 2.0.6
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://vsftpd.beasts.org/
|
URL: http://vsftpd.beasts.org/
|
||||||
@ -158,6 +158,10 @@ fi
|
|||||||
%{_var}/ftp
|
%{_var}/ftp
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 25 2008 Martin Nagy <mnagy@redhat.com> - 2.0.6-2
|
||||||
|
- fix init script (#431452)
|
||||||
|
- make the init script LSB compliant (#247093)
|
||||||
|
|
||||||
* Fri Feb 22 2008 Martin Nagy <mnagy@redhat.com> - 2.0.6-1
|
* Fri Feb 22 2008 Martin Nagy <mnagy@redhat.com> - 2.0.6-1
|
||||||
- rebase for new upstream version
|
- rebase for new upstream version
|
||||||
- remove patches that were fixed in upstream: kickline, confspell, anon_umask
|
- remove patches that were fixed in upstream: kickline, confspell, anon_umask
|
||||||
|
Loading…
Reference in New Issue
Block a user