From b1329e8dbfbc80d1d4407a68ea66a44e8513a135 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: May 24 2007 14:14:48 +0000 Subject: - fix return codes in init script (#237781) --- diff --git a/arpwatch.init b/arpwatch.init index 1c6858b..5b36b15 100644 --- a/arpwatch.init +++ b/arpwatch.init @@ -15,16 +15,13 @@ if [ -f /etc/sysconfig/arpwatch ];then . /etc/sysconfig/arpwatch fi -# Check that networking is up. -if [ "$NETWORKING" = "no" ] -then - exit 0 -fi - RETVAL=0 prog="arpwatch" start () { + # Check that networking is up. + [ "$NETWORKING" = "no" ] && exit 1 + echo -n $"Starting $prog: " daemon arpwatch $OPTIONS RETVAL=$? @@ -55,6 +52,7 @@ case "$1" in ;; status) status arpwatch + RETVAL=$? ;; restart|reload) restart @@ -64,7 +62,7 @@ case "$1" in ;; *) echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}" - exit 1 + RETVAL=3 esac -exit $? +exit $RETVAL diff --git a/arpwatch.spec b/arpwatch.spec index 277bbed..3cf61c9 100644 --- a/arpwatch.spec +++ b/arpwatch.spec @@ -3,7 +3,7 @@ Name: arpwatch Epoch: 14 Version: 2.1a15 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Network monitoring tools for tracking IP addresses on a network Group: Applications/System License: BSD @@ -137,6 +137,9 @@ fi %verify(not md5 size mtime) %config %{_vararpwatch}/ethercodes.dat %changelog +* Thu May 24 2007 Miroslav Lichvar 14:2.1a15-4 +- fix return codes in init script (#237781) + * Mon Jan 15 2007 Miroslav Lichvar 14:2.1a15-3 - rename pcap user to arpwatch