mail-filter/rspamd: remove unused init file
authorMichael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com>
Sun, 18 Dec 2016 18:47:43 +0000 (19:47 +0100)
committerDirkjan Ochtman <djc@gentoo.org>
Sun, 18 Dec 2016 20:44:03 +0000 (21:44 +0100)
mail-filter/rspamd/files/rspamd.init-r1 [deleted file]

diff --git a/mail-filter/rspamd/files/rspamd.init-r1 b/mail-filter/rspamd/files/rspamd.init-r1
deleted file mode 100644 (file)
index 74e043e..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-extra_commands="checkconfig"
-extra_started_commands="reload"
-
-RUNDIR=/var/run/rspamd
-PIDFILE=$RUNDIR/rspamd.pid
-
-depend() {
-       need net
-}
-
-checkconfig() {
-       /usr/bin/rspamadm configtest -c /etc/rspamd/rspamd.sysvinit.conf > /dev/null \
-               || return 1
-}
-
-start() {
-       checkconfig || return 1
-       ebegin "Starting ${SVCNAME}"
-
-       mkdir -m0750 -p $RUNDIR
-       chown rspamd:rspamd $RUNDIR
-       chmod g+s $RUNDIR
-       rm -f $RUNDIR/$SVCNAME.sock
-
-       start-stop-daemon --start --quiet --pidfile $PIDFILE -u rspamd -g rspamd \
-                                               --exec /usr/bin/rspamd
-       eend $?
-}
-
-stop() {
-       if [ "${RC_CMD}" = "restart" ] ; then
-               checkconfig || return 1
-       fi
-
-       ebegin "Stopping ${SVCNAME}"
-       start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE \
-                                               --exec /usr/bin/rspamd
-       eend $?
-}