- modified init script to be LSB compliant

This commit is contained in:
Jiri Skala 2009-09-15 12:18:06 +00:00
parent 03c7b6d9d7
commit 675a080743
2 changed files with 15 additions and 4 deletions

View File

@ -43,8 +43,16 @@ start() {
echo -n $"Starting $prog for $site: " echo -n $"Starting $prog for $site: "
daemon /usr/sbin/vsftpd $i daemon /usr/sbin/vsftpd $i
RETVAL=$? RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
echo echo
if [ $RETVAL -eq 0 ]; then
touch /var/lock/subsys/$prog
break
else
if [ -f /var/lock/subsys/$prog ]; then
RETVAL=0
break
fi
fi
done done
else else
RETVAL=1 RETVAL=1
@ -75,7 +83,7 @@ case "$1" in
start start
RETVAL=$? RETVAL=$?
;; ;;
condrestart) condrestart|try-restart|force-reload)
if [ -f /var/lock/subsys/$prog ]; then if [ -f /var/lock/subsys/$prog ]; then
stop stop
start start
@ -87,7 +95,7 @@ case "$1" in
RETVAL=$? RETVAL=$?
;; ;;
*) *)
echo $"Usage: $0 {start|stop|restart|condrestart|status}" echo $"Usage: $0 {start|stop|restart|try-restart|force-reload|status}"
exit 1 exit 1
esac esac

View File

@ -2,7 +2,7 @@
Name: vsftpd Name: vsftpd
Version: 2.2.0 Version: 2.2.0
Release: 3%{?dist} Release: 4%{?dist}
Summary: Very Secure Ftp Daemon Summary: Very Secure Ftp Daemon
Group: System Environment/Daemons Group: System Environment/Daemons
@ -139,6 +139,9 @@ fi
%changelog %changelog
* Mon Sep 14 2009 Jiri Skala <jskala@rehat.com> - 2.2.0-4
- modified init script to be LSB compliant
* Tue Sep 08 2009 Jiri Skala <jskala@rehat.com> - 2.2.0-3 * Tue Sep 08 2009 Jiri Skala <jskala@rehat.com> - 2.2.0-3
- fixed bug messaged in RHEL-4 #479774 - Wildcard failures with vsftpd - fixed bug messaged in RHEL-4 #479774 - Wildcard failures with vsftpd