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:
parent
ea76cef3dc
commit
3c38c09df9
@ -72,10 +72,10 @@ if [ $1 -ge 1 ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%triggerun -- irqbalance < 0.56-3
|
%triggerun -- irqbalance < 0.56-3
|
||||||
if /sbin/chkconfig irqbalance ; then
|
if /sbin/chkconfig --level 3 irqbalance ; then
|
||||||
/sbin/chkconfig --del irqbalance >/dev/null 2>&1 || :
|
|
||||||
/bin/systemctl enable irqbalance.service >/dev/null 2>&1 || :
|
/bin/systemctl enable irqbalance.service >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
/sbin/chkconfig --del irqbalance >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Apr 8 2011 Peter Robinson <pbrobinson@gmail.com> - 2:0.56-3
|
* Fri Apr 8 2011 Peter Robinson <pbrobinson@gmail.com> - 2:0.56-3
|
||||||
|
Loading…
Reference in New Issue
Block a user