From 3c38c09df9e60c146432f481cd3d4d7f5469988d Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 5 May 2011 16:38:12 -0400 Subject: [PATCH] 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. --- irqbalance.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irqbalance.spec b/irqbalance.spec index 8be1d80..26c9d30 100644 --- a/irqbalance.spec +++ b/irqbalance.spec @@ -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 - 2:0.56-3