summaryrefslogtreecommitdiffstats
path: root/redhat
diff options
context:
space:
mode:
authorajs <ajs>2005-01-15 18:26:48 +0100
committerajs <ajs>2005-01-15 18:26:48 +0100
commitb854038bd03e6c54b46d35bf4e40d0f39e30dfde (patch)
tree67477de86881b5296083e184a6d136812d6f4a40 /redhat
parent2005-01-14 Andrew J. Schorr <ajschorr@alumni.princeton.edu> (diff)
downloadfrr-b854038bd03e6c54b46d35bf4e40d0f39e30dfde.tar.xz
frr-b854038bd03e6c54b46d35bf4e40d0f39e30dfde.zip
2005-01-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* redhat/quagga.spec.in: Fix postun script to avoid misleading error message saying the postun scriptlet failed when watchquagga is not running. (pullup candidate)
Diffstat (limited to 'redhat')
-rw-r--r--redhat/quagga.spec.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/redhat/quagga.spec.in b/redhat/quagga.spec.in
index b22ebc57a..e45ec1f14 100644
--- a/redhat/quagga.spec.in
+++ b/redhat/quagga.spec.in
@@ -306,8 +306,9 @@ if [ "$1" -ge 1 ]; then
/etc/rc.d/init.d/$daemon start >/dev/null 2>&1
done
# Start watchquagga last.
+ # Avoid postun scriptlet error if watchquagga is not running.
[ "$running_watchquagga" = yes ] && \
- /etc/rc.d/init.d/watchquagga start >/dev/null 2>&1
+ /etc/rc.d/init.d/watchquagga start >/dev/null 2>&1 || :
fi
%preun