diff options
Diffstat (limited to 'mail-filter/spampd/files/init-r1')
-rw-r--r-- | mail-filter/spampd/files/init-r1 | 23 |
1 files changed, 23 insertions, 0 deletions
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" +} |