diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /mail-filter/spampd/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'mail-filter/spampd/files')
-rw-r--r-- | mail-filter/spampd/files/conf | 15 | ||||
-rw-r--r-- | mail-filter/spampd/files/init | 23 | ||||
-rw-r--r-- | mail-filter/spampd/files/init-r1 | 23 |
3 files changed, 61 insertions, 0 deletions
diff --git a/mail-filter/spampd/files/conf b/mail-filter/spampd/files/conf new file mode 100644 index 000000000000..64abe21dd1b0 --- /dev/null +++ b/mail-filter/spampd/files/conf @@ -0,0 +1,15 @@ +# This is the configuration file that /etc/init.d/spampd sources when +# started. + +# SPAMPD_OPTS defines the command-line arguments to be passed to the +# spampd daemon upon start-up. A complete list of options can be +# found in the documentation, or by issuing the command +# "/usr/sbin/spampd --help" + +SPAMPD_OPTS="--host=localhost:10025 --relayhost=localhost:10026 --tagall" + +# Note: (from the Installation section in the spampd documentation) +# "Note that spampd replaces spamd from the SpamAssassin distribution +# in function. You do not need to run spamd in order for spampd to +# work. This has apparently been the source of some confusion, so now +# you know." diff --git a/mail-filter/spampd/files/init b/mail-filter/spampd/files/init new file mode 100644 index 000000000000..7a5171e46034 --- /dev/null +++ b/mail-filter/spampd/files/init @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# 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 -- --pid=/var/run/spampd.pid \ + ${SPAMPD_OPTS} + eend $? "Failed to start spampd" +} + +stop() { + ebegin "Stopping spampd" + start-stop-daemon --stop --quiet --pidfile /var/run/spampd.pid + eend $? "Failed to stop spampd" +} diff --git a/mail-filter/spampd/files/init-r1 b/mail-filter/spampd/files/init-r1 new file mode 100644 index 000000000000..b6402e4b5b55 --- /dev/null +++ b/mail-filter/spampd/files/init-r1 @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# 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" +} |