summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2014-04-20 14:17:31 +0000
committerEray Aslan <eras@gentoo.org>2014-04-20 14:17:31 +0000
commitf6b3ad22de8681d6a0921ffd523921ed3c0a9bbb (patch)
tree572c08cdad6ca2b9fa0f3b47ac8bf75d19c47cce /mail-filter/spampd/files
parentStable ppc ppc64, bug #508228 (diff)
downloadhistorical-f6b3ad22de8681d6a0921ffd523921ed3c0a9bbb.tar.gz
historical-f6b3ad22de8681d6a0921ffd523921ed3c0a9bbb.tar.bz2
historical-f6b3ad22de8681d6a0921ffd523921ed3c0a9bbb.zip
Version bump - bug #507186
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0x77F1F175586A3B1F
Diffstat (limited to 'mail-filter/spampd/files')
-rwxr-xr-xmail-filter/spampd/files/init-r124
1 files changed, 24 insertions, 0 deletions
diff --git a/mail-filter/spampd/files/init-r1 b/mail-filter/spampd/files/init-r1
new file mode 100755
index 000000000000..8e903e9a29a5
--- /dev/null
+++ b/mail-filter/spampd/files/init-r1
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spampd/files/init-r1,v 1.1 2014/04/20 14:17:22 eras Exp $
+
+# Note: spampd configuration file is /etc/conf.d/spampd
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting spampd"
+ start-stop-daemon --start --quiet \
+ --exec /usr/sbin/spampd.pl -- --pid=/run/spampd.pid \
+ ${SPAMPD_OPTS}
+ eend $? "Failed to start spampd"
+}
+
+stop() {
+ ebegin "Stopping spampd"
+ start-stop-daemon --stop --quiet --pidfile /run/spampd.pid
+ eend $? "Failed to stop spampd"
+}