File irqbindall-add-systemd-service-file.diff of Package ibmrtpkgs.15904

Subject: add systemd service file irqbindall.service
From: Mike Galbraith <mgalbraith@suse.de>
References: bnc#966818

Signed-off-by: Mike Galbraith <mgalbraith@suse.de>
---
 config/config.sh              |    2 +-
 irqbindall/irqbindall.service |   15 +++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

--- a/config/config.sh
+++ b/config/config.sh
@@ -119,7 +119,7 @@ check_sysctl_setting kernel.sysrq 1
 #-----------------------------------------------------------------------#
 
 info "Turning irqbindall on and irqbalance off."
-$CHKCONFIG irqbindall on
+$CHKCONFIG -s irqbindall on
 $CHKCONFIG -s irqbalance off
 
 info "All changes were successfully executed."
--- /dev/null
+++ b/irqbindall/irqbindall.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Sets irq affinity to all cpus
+ConditionFileIsExecutable=/etc/init.d/irqbindall
+Wants=basic.target
+After=sysinit.target
+
+[Service]
+Type=forking
+ExecStart=/etc/init.d/irqbindall start
+TimeoutSec=0
+RemainAfterExit=yes
+SysVStartPriority=1
+
+[Install]
+WantedBy=sysinit.target
openSUSE Build Service is sponsored by