mail-filter/spamassassin: remove unused files.

Closes: https://github.com/gentoo/gentoo/pull/9744
This commit is contained in:
Michael Mair-Keimberger
2018-08-31 20:11:57 +02:00
committed by Patrice Clement
parent a4f9062118
commit a560f07d06
4 changed files with 0 additions and 105 deletions

View File

@@ -1,25 +0,0 @@
# Config file for /etc/init.d/spamd
#
# ***WARNING***
#
# spamd was not designed to listed to an untrusted network. spamd
# is vulnerable to DoS attacks (and eternal doom) if used to listen
# to an untrusted network.
#
# ***WARNING***
#
# Additional options to pass to the spamd daemon. The spamd(1) man
# page explains the available options. If you choose to listen on a
# non-default interface, you will need to use OpenRC's "rc_need"
# mechanism to ensure that your interface comes up before spamd
# starts. The openrc-run(8) man page describes rc_need.
SPAMD_OPTS="--max-children=5 --create-prefs --helper-home-dir"
# Sets the 'nice' level of the spamd process.
SPAMD_NICELEVEL=0
# How long (in seconds) should we wait for spamd to stop after we've
# asked it to? After this amount of time, if spamd is still running,
# we will assume that it has failed to stop.
SPAMD_TIMEOUT=15

View File

@@ -1,55 +0,0 @@
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
PIDDIR=/run/spamd
PIDFILE=${PIDDIR}/spamd.pid
extra_started_commands="reload"
depend() {
before mta
use logger
@USEPOSTGRES@ use postgresql
@USEMYSQL@ use mysql
}
start() {
ebegin "Starting spamd"
# Ensure that the PID file's directory exists.
checkpath --directory "${PIDDIR}"
# Reloading spamd causes its PID to change, so we track it by
# name instead.
start-stop-daemon --start --quiet \
--name spamd \
--nicelevel ${SPAMD_NICELEVEL} \
--pidfile ${PIDFILE} \
--exec /usr/sbin/spamd -- \
--daemonize \
--pidfile=${PIDFILE} \
${SPAMD_OPTS}
retval=$?
eend ${retval} "Failed to start spamd"
}
stop() {
ebegin "Stopping spamd"
# Retry after SPAMD_TIMEOUT seconds because spamd can take a
# while to kill off all of its children. This was bug 322025.
start-stop-daemon --stop \
--quiet \
--retry ${SPAMD_TIMEOUT} \
--pidfile ${PIDFILE}
eend $? "Failed to stop spamd"
}
reload() {
ebegin "Reloading configuration"
# Warning: causes the PID of the spamd process to change.
start-stop-daemon --signal HUP --quiet --pidfile ${PIDFILE}
eend $?
}

View File

@@ -1,15 +0,0 @@
[Unit]
Description=Spamassassin daemon
After=syslog.target network.target
[Service]
Type=forking
PIDFile=/run/spamd.pid
ExecStart=/usr/sbin/spamd -d --pidfile /run/spamd.pid -m 5 $SPAMD_OPTS
ExecReload=/bin/kill -HUP $MAINPID
StandardOutput=syslog
StandardError=syslog
Restart=always
[Install]
WantedBy=multi-user.target

View File

@@ -1,10 +0,0 @@
# Here you can append some options to spamd process, please
# double check that you make needed changes in service file if
# you use options requiring it
# Some options:
#
# -c to create a per user configuration file
# -H [dir] to switch home dirs for helper apps, dir optional
[Service]
Environment="SPAMD_OPTS= -c -H"