- made init script fully lsb conform
This commit is contained in:
parent
808a4ead25
commit
88c0ef8ce1
@ -137,12 +137,12 @@ case "$1" in
|
||||
RETVAL=$?
|
||||
;;
|
||||
stop)
|
||||
[ $running -ne 0 ] || exit 0
|
||||
[ $running -eq 0 ] || exit 0
|
||||
stop
|
||||
RETVAL=$?
|
||||
;;
|
||||
reload)
|
||||
[ $running -ne 0 ] && exit 7
|
||||
[ $running -eq 0 ] || exit 7
|
||||
reload
|
||||
RETVAL=$?
|
||||
;;
|
||||
@ -152,7 +152,7 @@ case "$1" in
|
||||
RETVAL=$?
|
||||
;;
|
||||
condrestart|try-restart)
|
||||
[ ! -f /var/lock/subsys/sendmail ] && exit 7
|
||||
[ $running -eq 0 ] || exit 0
|
||||
stop
|
||||
start
|
||||
RETVAL=$?
|
||||
@ -165,7 +165,7 @@ case "$1" in
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
|
||||
RETVAL=3
|
||||
RETVAL=2
|
||||
esac
|
||||
|
||||
exit $RETVAL
|
||||
|
@ -15,7 +15,7 @@
|
||||
Summary: A widely used Mail Transport Agent (MTA)
|
||||
Name: sendmail
|
||||
Version: 8.14.1
|
||||
Release: 4.1%{?dist}
|
||||
Release: 4.2%{?dist}
|
||||
License: Sendmail
|
||||
Group: System Environment/Daemons
|
||||
URL: http://www.sendmail.org/
|
||||
@ -539,6 +539,9 @@ exit 0
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Sep 17 2007 Thomas Woerner <twoerner@redhat.com> 8.14.1-4.2
|
||||
- made init script fully lsb conform
|
||||
|
||||
* Wed Aug 29 2007 Thomas Woerner <twoerner@redhat.com> 8.14.1-4.1
|
||||
- fixed condrestart in init script to use exit instead of return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user