Skip to content

Commit

Permalink
* munge.spec: Force chkconfig to reinstall init script if droppings
Browse files Browse the repository at this point in the history
  from the "-1 priority" bug are found.
  • Loading branch information
dun committed Dec 22, 2004
1 parent ea94e64 commit b46de0e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions munge.spec
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit b46de0e

Please sign in to comment.