Fix systemd upgrade trigger.

chkconfig, without any level passed, forwards to systemd. This isn't what
you want if you're checking its SysV status for migration.

Also, always run --del for the old SysV script, not only if you're enabling
the service.
This commit is contained in:
Bill Nottingham 2011-05-05 16:38:12 -04:00
parent ea76cef3dc
commit 3c38c09df9

View File

@ -72,10 +72,10 @@ if [ $1 -ge 1 ] ; then
fi
%triggerun -- irqbalance < 0.56-3
if /sbin/chkconfig irqbalance ; then
/sbin/chkconfig --del irqbalance >/dev/null 2>&1 || :
if /sbin/chkconfig --level 3 irqbalance ; then
/bin/systemctl enable irqbalance.service >/dev/null 2>&1 || :
fi
/sbin/chkconfig --del irqbalance >/dev/null 2>&1 || :
%changelog
* Fri Apr 8 2011 Peter Robinson <pbrobinson@gmail.com> - 2:0.56-3