From 88c0ef8ce1f2651a758ed161ec48a565f6c4e8aa Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Sep 17 2007 15:49:05 +0000 Subject: - made init script fully lsb conform --- diff --git a/sendmail.init b/sendmail.init index e28c119..2dd0ded 100644 --- a/sendmail.init +++ b/sendmail.init @@ -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 diff --git a/sendmail.spec b/sendmail.spec index c292ed7..2e2ee16 100644 --- a/sendmail.spec +++ b/sendmail.spec @@ -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 8.14.1-4.2 +- made init script fully lsb conform + * Wed Aug 29 2007 Thomas Woerner 8.14.1-4.1 - fixed condrestart in init script to use exit instead of return