aboutsummaryrefslogtreecommitdiffstats
path: root/testing/clapf/clapf.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/clapf/clapf.initd')
-rw-r--r--testing/clapf/clapf.initd23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/clapf/clapf.initd b/testing/clapf/clapf.initd
new file mode 100644
index 0000000000..eaf2aa49e3
--- /dev/null
+++ b/testing/clapf/clapf.initd
@@ -0,0 +1,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 $?
+}