diff options
author | Michael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com> | 2016-12-18 19:47:43 +0100 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2016-12-18 21:44:03 +0100 |
commit | 2e69c9ffe736ba63081ecc045ea42815d9563adb (patch) | |
tree | d9fd5d0c484924bb1386f25bd7d1e7fa44f30040 /mail-filter/rspamd | |
parent | app-misc/tmux: Added sub-slot dependency for dev-libs/libevent. (diff) | |
download | gentoo-2e69c9ffe736ba63081ecc045ea42815d9563adb.tar.gz gentoo-2e69c9ffe736ba63081ecc045ea42815d9563adb.tar.bz2 gentoo-2e69c9ffe736ba63081ecc045ea42815d9563adb.zip |
mail-filter/rspamd: remove unused init file
Diffstat (limited to 'mail-filter/rspamd')
-rw-r--r-- | mail-filter/rspamd/files/rspamd.init-r1 | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/mail-filter/rspamd/files/rspamd.init-r1 b/mail-filter/rspamd/files/rspamd.init-r1 deleted file mode 100644 index 74e043e13fa9..000000000000 --- a/mail-filter/rspamd/files/rspamd.init-r1 +++ /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 $? -} |