From b46de0edf25c46ed786483dbc62bad213634ff59 Mon Sep 17 00:00:00 2001 From: Chris Dunlap Date: Wed, 22 Dec 2004 01:25:37 +0000 Subject: [PATCH] * munge.spec: Force chkconfig to reinstall init script if droppings from the "-1 priority" bug are found. --- munge.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/munge.spec b/munge.spec index 69835826..5ad2d0d8 100644 --- a/munge.spec +++ b/munge.spec @@ -1,4 +1,4 @@ -# $Id: munge.spec,v 1.26 2004/12/22 01:05:04 dun Exp $ +# $Id: munge.spec,v 1.27 2004/12/22 01:25:37 dun Exp $ Name: munge Version: 0 @@ -36,7 +36,14 @@ DESTDIR="$RPM_BUILD_ROOT" make install rm -rf "$RPM_BUILD_ROOT" %pre -find /etc/rc.d/rc?.d/ -type l -name "[SK]-1munge" -exec rm -f {} \; +# +# Remove chkconfig droppings from the "-1 priority" bug. +# +if [ -L /etc/rc.d/rc0.d/K-1munge ]; then + find /etc/rc.d/rc?.d/ -type l -name "[SK]-1munge" -exec rm -f {} \; + /sbin/chkconfig --del munge + /sbin/chkconfig --add munge +fi %post /sbin/ldconfig %{_libdir}