[PATCH] systemd: add wdmd dependency for sanlock
by Federico Simoncelli
Signed-off-by: Federico Simoncelli <fsimonce(a)redhat.com>
---
init.d/sanlock.service | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/init.d/sanlock.service b/init.d/sanlock.service
index f026fe0..64d9ced 100644
--- a/init.d/sanlock.service
+++ b/init.d/sanlock.service
@@ -1,6 +1,7 @@
[Unit]
Description=Shared Storage Lease Manager
-After=syslog.target wdmd.service
+After=syslog.target
+Wants=wdmd.service
[Service]
Type=forking
--
1.7.1
10 years, 4 months
wdmd/main.c
by David Teigland
wdmd/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c7e288e4609bb84167a2ccb56ac66567c71be557
Author: David Teigland <teigland(a)redhat.com>
Date: Tue Nov 6 15:36:16 2012 -0600
wdmd: use mode 775 for run dir
init script already creates it as 775,
so this isn't a big problem.
Signed-off-by: David Teigland <teigland(a)redhat.com>
diff --git a/wdmd/main.c b/wdmd/main.c
index 482ab29..646a0ac 100644
--- a/wdmd/main.c
+++ b/wdmd/main.c
@@ -1185,7 +1185,7 @@ static int lockfile(void)
int fd, rv;
old_umask = umask(0022);
- rv = mkdir(WDMD_RUN_DIR, 0777);
+ rv = mkdir(WDMD_RUN_DIR, 0775);
if (rv < 0 && errno != EEXIST) {
umask(old_umask);
return rv;
10 years, 4 months
init.d/fence_sanlockd.service init.d/sanlock.service init.d/wdmd.service
by David Teigland
init.d/fence_sanlockd.service | 1 +
init.d/sanlock.service | 2 ++
init.d/wdmd.service | 2 ++
3 files changed, 5 insertions(+)
New commits:
commit 337c30353d650bd02bd1203b7859124926dfef71
Author: David Teigland <teigland(a)redhat.com>
Date: Mon Nov 5 15:53:40 2012 -0600
fix systemd service files
add [Unit] and disable the cgroup stuff to avoid
the set_scheduler failures
Signed-off-by: David Teigland <teigland(a)redhat.com>
diff --git a/init.d/fence_sanlockd.service b/init.d/fence_sanlockd.service
index 873da59..f2d655b 100644
--- a/init.d/fence_sanlockd.service
+++ b/init.d/fence_sanlockd.service
@@ -1,3 +1,4 @@
+[Unit]
Description=daemon for fence_sanlock agent
After=syslog.target wdmd.service sanlock.service
Before=corosync.service
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
10 years, 4 months