Created
January 7, 2013 06:02
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hacked by me, btw, not Louis.