environment for glusterfs
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_glusterfs@5945 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
d48b8ff84c
23
etc/init/glusterfsd.conf
Normal file
23
etc/init/glusterfsd.conf
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
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
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user