aboutsummaryrefslogtreecommitdiffstats
path: root/testing/clapf/clapf.initd
blob: eaf2aa49e3b6865e30b2ce74d7166c2d401dc0d6 (plain) (blame)
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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:

depend() {
	need net
        use logger
	before mta
}

start() {
	ebegin "Starting clapf"
	start-stop-daemon --start --quiet --user clapf --background \
	--exec /usr/sbin/clapf --make-pidfile --pid /var/run/clapf/clapf.pid -- -c /etc/clapf.conf
	eend $?
}

stop() {
	ebegin "Stopping clapf"
	start-stop-daemon --stop --quiet --pidfile /var/run/clapf/clapf.pid
	eend $?
}