summaryrefslogtreecommitdiff
blob: 54cb72890af61987463d425112bb999aacabc32b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ccs/files/ccsd.rc,v 1.3 2005/03/22 13:46:02 xmerlin Exp $

depend() {
	use net
	provide ccs
}

exefile=/sbin/ccsd
pidfile=/var/run/ccsd.pid

start() {
	ebegin "Starting ccsd"
	start-stop-daemon --start --quiet \
		--exec ${exefile} -- ${CCSD_OPTS}
	sleep 1s
	eend $?
}

stop() {
	ebegin "Stopping ccsd"
	start-stop-daemon --stop --quiet --exec ${exefile} > /dev/null
	eend $?
}