From c3bbf6aa6c090fd066ab0079aa1c8ae332309d2a Mon Sep 17 00:00:00 2001 From: Louis Zuckerman Date: Tue, 7 Feb 2012 11:16:10 -0500 Subject: Updated the Ubuntu upstart jobs for glusterd in extras/Ubuntu. Using upstart jobs, instead of an initscript, solves Bug 765014. See also: https://bugs.launchpad.net/ubuntu/+source/glusterfs/+bug/876648 The new upstart jobs split the work of starting glusterd & mounting glusterfs volumes into two parts: a glusterd service runner and a glusterfs volume moung blocker which waits for the service runner. This is the method preferred by Ubuntu developers to block a mounting event until a required service is available. These changes will be included in the Ubuntu glusterfs-server package starting with release 12.04, Precise Pangolin. Tested on Ubuntu 12.04 Change-Id: I9bb4e8cb05a1da0997c23f2ef7fea8737f6a2eb9 BUG: 765014 Signed-off-by: Louis Zuckerman Reviewed-on: http://review.gluster.com/2727 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Jeff Darcy Reviewed-by: Anand Avati --- extras/Ubuntu/mounting-glusterfs.conf | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 extras/Ubuntu/mounting-glusterfs.conf (limited to 'extras/Ubuntu/mounting-glusterfs.conf') diff --git a/extras/Ubuntu/mounting-glusterfs.conf b/extras/Ubuntu/mounting-glusterfs.conf new file mode 100644 index 00000000000..3c59c0f635e --- /dev/null +++ b/extras/Ubuntu/mounting-glusterfs.conf @@ -0,0 +1,7 @@ +author "Louis Zuckerman " +description "Block the mounting event for glusterfs filesystems until glusterd is running" + +start on mounting TYPE=glusterfs +task +exec start wait-for-state WAIT_FOR=glusterd WAITER=mounting-glusterfs + -- cgit