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