Blob Blame History Raw
From 337c30353d650bd02bd1203b7859124926dfef71 Mon Sep 17 00:00:00 2001
From: David Teigland <teigland@redhat.com>
Date: Mon, 5 Nov 2012 15:53:40 -0600
Subject: [PATCH] fix systemd service files

add [Unit] and disable the cgroup stuff to avoid
the set_scheduler failures

Signed-off-by: David Teigland <teigland@redhat.com>
---
 init.d/sanlock.service        |    2 ++
 init.d/wdmd.service           |    2 ++
 2 files changed, 4 insertions(+)

diff --git a/init.d/sanlock.service b/init.d/sanlock.service
index ff4a3e7..f026fe0 100644
--- a/init.d/sanlock.service
+++ b/init.d/sanlock.service
@@ -1,8 +1,10 @@
+[Unit]
 Description=Shared Storage Lease Manager
 After=syslog.target wdmd.service
 
 [Service]
 Type=forking
+ControlGroup=cpu:/
 ExecStart=/lib/systemd/systemd-sanlock start
 ExecStop=/lib/systemd/systemd-sanlock stop
 
diff --git a/init.d/wdmd.service b/init.d/wdmd.service
index 88d00b6..efe46bf 100644
--- a/init.d/wdmd.service
+++ b/init.d/wdmd.service
@@ -1,8 +1,10 @@
+[Unit]
 Description=Watchdog Multiplexing Daemon
 After=syslog.target
 
 [Service]
 Type=forking
+ControlGroup=cpu:/
 ExecStart=/lib/systemd/systemd-wdmd start
 ExecStop=/lib/systemd/systemd-wdmd stop
 
-- 
1.7.10.1.362.g242cab3