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

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

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

--- a/config/config.sh
+++ b/config/config.sh
@@ -122,6 +122,9 @@ info "Turning irqbindall on and irqbalan
 $CHKCONFIG -s irqbindall on
 $CHKCONFIG -s irqbalance off
 
+info "Turning set_kthread_prio on."
+$CHKCONFIG -s set_kthread_prio on
+
 info "All changes were successfully executed."
 
 exit 0
--- /dev/null
+++ b/set_kthread_prio/set_kthread_prio.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Set kernel thread priority for realtime
+ConditionFileIsExecutable=/etc/init.d/set_kthread_prio
+Wants=basic.target
+After=sysinit.target
+
+[Service]
+Type=forking
+ExecStart=/etc/init.d/set_kthread_prio start
+TimeoutSec=0
+RemainAfterExit=yes
+SysVStartPriority=1
+
+[Install]
+WantedBy=sysinit.target
openSUSE Build Service is sponsored by