From 4b640273b05dec6923c13d14d4d40e136e2df99f Mon Sep 17 00:00:00 2001 From: Louis Zuckerman Date: Fri, 29 Jul 2011 18:03:41 -0400 Subject: Provides an upstart job for glusterd on Ubuntu, solving Bug 3282 Mounting from localhost in fstab fails at boot on ubuntu when glusterd is started by debian initscript. A new directory, extras/Ubuntu, contains the new upstart job (glusterd.conf) and a brief README.Ubuntu file. This makes the upstart job available to package maintainers like the SysV initscripts are in extras/init.d. This has been tested on Ubuntu 10.10 Maverick. Change-Id: I6ccd06054e920cd6dc45dba4eb8ab89aa30f8b47 BUG: 3282 Reviewed-on: http://review.gluster.com/126 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- extras/Ubuntu/glusterd.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 extras/Ubuntu/glusterd.conf (limited to 'extras/Ubuntu/glusterd.conf') diff --git a/extras/Ubuntu/glusterd.conf b/extras/Ubuntu/glusterd.conf new file mode 100644 index 000000000..b987ffa13 --- /dev/null +++ b/extras/Ubuntu/glusterd.conf @@ -0,0 +1,17 @@ +# glusterd service upstart job +# +# Author: Louis Zuckerman + +description "GlusterFS Management Daemon" + +start on (local-filesystems and net-device-up IFACE=lo and net-device-up IFACE=eth0) or (mounting TYPE=glusterfs) +stop on runlevel [016] + +respawn + +exec /usr/sbin/glusterd -N -p /var/run/glusterd.pid + +post-start script + sleep 1 +end script + -- cgit