diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2010-11-21 18:56:20 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2010-11-21 18:56:20 +0000 |
commit | e8bdc33fc42989ba1396c368eaf028a8cd14bb60 (patch) | |
tree | 2f8b186c1cf7409445faa8b4624d21c68467ffa0 /sys-cluster/glusterfs/files | |
parent | Mask x11-libs/qt-script[jit] wrt bug 346167 (diff) | |
download | historical-e8bdc33fc42989ba1396c368eaf028a8cd14bb60.tar.gz historical-e8bdc33fc42989ba1396c368eaf028a8cd14bb60.tar.bz2 historical-e8bdc33fc42989ba1396c368eaf028a8cd14bb60.zip |
Add support for glusterd wrt #345427 by Thomas Merkel <tm@core.io>. All work done by Ultrabug <ultrabug@ultrabug.net>. Drop old
Package-Manager: portage-2.1.9.24/cvs/Linux x86_64
Diffstat (limited to 'sys-cluster/glusterfs/files')
-rw-r--r-- | sys-cluster/glusterfs/files/glusterd.initd | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sys-cluster/glusterfs/files/glusterd.initd b/sys-cluster/glusterfs/files/glusterd.initd new file mode 100644 index 000000000000..1cd09f9d691b --- /dev/null +++ b/sys-cluster/glusterfs/files/glusterd.initd @@ -0,0 +1,36 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/files/glusterd.initd,v 1.1 2010/11/21 18:56:20 xarthisius Exp $ + +PIDFILE=/var/run/glusterd.pid + +depend() { + need net + before netmount +} + +start() { + ebegin "Starting glusterd" + start-stop-daemon --start -q --exec /usr/sbin/glusterd \ + --pidfile "${PIDFILE}" --make-pidfile --background \ + -- -N + eend $? +} + +stop() { + ebegin "Stopping glusterd" + start-stop-daemon --stop -q --pidfile "${PIDFILE}" + eindent + + einfo "Unmounting GlusterFS filesystems" + umount -t fuse.glusterfs -a + + einfo "Killing remaining GlusterFS processes" + for PID in $(find /var/lib/glusterd/ -type f -name "*.pid" -exec cat {} \;); do + kill "${PID}" + done + + eoutdent + eend $? +} |