summaryrefslogtreecommitdiff
blob: add364549d208866c2c30d4d0b7bf2477b00a128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cman/files/qdiskd-2.0x.rc,v 1.2 2008/11/21 22:27:54 xmerlin Exp $

depend() {
	use net
	need cman
}

start() {
	ebegin "Starting the Quorum Disk Daemon"
	start-stop-daemon --start --quiet --exec /usr/sbin/qdiskd -- -Q
        eend $? "Failed to start qdiskd"
}

stop() {
	ebegin "Stopping the Quorum Disk Daemon"

	start-stop-daemon --stop --pidfile /var/run/qdiskd.pid
        eend $? "Failed to stop qdiskd"
}