summaryrefslogtreecommitdiff
blob: d736326b84c678ad606adf38ab442b44bbb6eb0e (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.4 2005/03/23 02:07:13 xmerlin Exp $

depend() {
	use net
	provide ccs
}

exefile=/sbin/ccsd

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

stop() {
	ebegin "Stopping ccsd"
	start-stop-daemon --stop --quiet \
		-s 9 --exec ${exefile}
	eend $?
}