Skip to content

Instantly share code, notes, and snippets.

Created January 7, 2013 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4472816 to your computer and use it in GitHub Desktop.
Save anonymous/4472816 to your computer and use it in GitHub Desktop.
The glusterfs-server upstart conf would start before the brick was mounted. I added this ugly hack to get it working. I ripped the pre-start script from mysql and decided to leave the sanity checks in place, just because.
author "Louis Zuckerman <me@louiszuckerman.com>"
description "GlusterFS Management Daemon"
start on runlevel [2345]
stop on runlevel [016]
pre-start script
#Sanity checks
[ -r /etc/glusterfs/glusterd.vol ]
[ -d /var/lib/glusterd ] || install -m 755 -o root -g root -d /var/lib/glusterd
/bin/sleep 10
end script
expect fork
exec /usr/sbin/glusterd -p /var/run/glusterd.pid
@joejulian
Copy link

Hacked by me, btw, not Louis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment