FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 12-13-2011, 01:20 PM
Andrew Price
 
Default 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@redhat.com>
---
gfs2/system/gfs2-cluster.service | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
create mode 100644 gfs2/system/gfs2-cluster.service

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
--
1.7.6.4
 
Old 12-13-2011, 01:23 PM
Steven Whitehouse
 
Default gfs2-utils: Add gfs2-cluster systemd unit

Hi,

On Tue, 2011-12-13 at 14:20 +0000, Andrew Price wrote:
> 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@redhat.com>
> ---
> gfs2/system/gfs2-cluster.service | 12 ++++++++++++
> 1 files changed, 12 insertions(+), 0 deletions(-)
> create mode 100644 gfs2/system/gfs2-cluster.service
>
> 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

We probably don't need the $OPTIONS, but it will probably do no harm
either. Otherwise looks good,

Steve.
 

Thread Tools




All times are GMT. The time now is 01:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org