summaryrefslogtreecommitdiff
path: root/user/cyrus-sasl/saslauthd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'user/cyrus-sasl/saslauthd.initd')
-rw-r--r--user/cyrus-sasl/saslauthd.initd22
1 files changed, 22 insertions, 0 deletions
diff --git a/user/cyrus-sasl/saslauthd.initd b/user/cyrus-sasl/saslauthd.initd
new file mode 100644
index 000000000..2707f533d
--- /dev/null
+++ b/user/cyrus-sasl/saslauthd.initd
@@ -0,0 +1,22 @@
+#!/sbin/openrc-run
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/files/saslauthd2.rc6,v 1.7 2007/04/07 13:03:55 chtekk Exp $
+
+depend() {
+ need net
+ after firewall
+}
+
+start() {
+ ebegin "Starting saslauthd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/saslauthd \
+ -- ${SASLAUTHD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping saslauthd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/saslauthd/saslauthd.pid
+ eend $?
+}