Gitweb:
http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitd...
Commit: 4761a8a1bd6435c24f13a10202a3f77f820abfab
Parent: 91f331d094994cd33abcdca84e7e2989f44170fe
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Tue Dec 13 13:58:49 2011 +0000
Committer: Andrew Price <anprice(a)redhat.com>
CommitterDate: Tue Dec 13 14:19:23 2011 +0000
gfs2-utils: Add gfs2-cluster systemd unit
Adds a systemd unit file to start gfs_controld at the correct point in
the boot sequence. I've tested this as much as I can on Fedora 16 but it
may require some more tweaking once the init scripts for cman, clvmd,
etc. have been migrated. The gfs2 init script has not been migrated as
systemd should now handle mounting of gfs2 file systems specially, after
remote-fs-pre.target.
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/system/gfs2-cluster.service | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/gfs2/system/gfs2-cluster.service b/gfs2/system/gfs2-cluster.service
new file mode 100644
index 0000000..d6bc0ca
--- /dev/null
+++ b/gfs2/system/gfs2-cluster.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=GFS2 Control Daemon
+After=syslog.target network.target cman.service
+Before=remote-fs-pre.target
+Wants=remote-fs-pre.target
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/gfs_controld $OPTIONS
+
+[Install]
+WantedBy=multi-user.target