2011-01-25 11:54:29 +00:00
|
|
|
description "Startup GlusterFS Daemon"
|
|
|
|
author "Michael Freitag <Michael.Freitag@freitag-systemtechnik.de>"
|
|
|
|
version 1.0
|
|
|
|
emits none special
|
|
|
|
|
|
|
|
start on (runlevel [2345] and (started mountfs))
|
|
|
|
stop on runlevel [016]
|
|
|
|
|
|
|
|
console none
|
|
|
|
|
|
|
|
pre-start script
|
|
|
|
source /etc/init/functions
|
|
|
|
if [ ! -f /etc/glusterfs/glusterfsd.vol ]; then
|
|
|
|
exit 10
|
|
|
|
fi
|
2011-01-26 12:45:16 +00:00
|
|
|
modprobe fuse
|
2011-01-25 11:54:29 +00:00
|
|
|
end script
|
|
|
|
|
|
|
|
post-start exec mount -a -t glusterfs
|
|
|
|
|
|
|
|
pre-stop exec umount -a -t fuse.glusterfs
|
|
|
|
|
|
|
|
|
|
|
|
exec /usr/sbin/glusterfsd -N -f /etc/glusterfs/glusterfsd.vol
|