+++ /dev/null
-#!/sbin/openrc-run
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-pidfile="/run/amavis/amavis-mc.pid"
-command="/usr/sbin/amavis-mc"
-command_args="${amavis_mc_args} -P ${pidfile}"
-start_stop_daemon_args="--interpreted"
-
-depend() {
- use logger
- before amavisd-new snmpd
-}
-
-start_pre() {
- checkpath -d -o amavis /run/amavis
-}
+++ /dev/null
-#!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-extra_started_commands="reload"
-extra_commands="debug debug_sa"
-
-prog="/usr/sbin/amavisd"
-progname="amavisd-new"
-
-depend() {
- use net logger antivirus snmpd
- before mta
-}
-
-start() {
- ebegin "Starting ${progname}"
- "${prog}" start
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${progname}"
- "${prog}" stop 1>/dev/null
- eend $?
-}
-
-reload() {
- ebegin "Reloading ${progname}"
- "${prog}" reload 1>/dev/null
- eend $?
-}
-
-debug() {
- ebegin "Starting ${progname} in debug mode"
- "${prog}" debug
- eend $?
-}
-
-debug_sa() {
- ebegin "Starting ${progname} in debug-sa mode"
- "${prog}" debug-sa
- eend $?
-}
+++ /dev/null
-[Unit]
-Description=Amavisd Daemon
-Wants=postfix.service
-Wants=spamassassin.service
-Wants=clamd.service
-After=network.target
-
-[Service]
-User=amavis
-Group=amavis
-ExecStart=/usr/sbin/amavisd -c /etc/amavisd.conf foreground
-ExecReload=/usr/sbin/amavisd -c /etc/amavisd.conf reload
-PrivateTmp=true
-CapabilityBoundingSet=
-ProtectSystem=full
-NoNewPrivileges=true
-PrivateDevices=true
-ProtectHome=true
-MemoryDenyWriteExecute=true
-
-[Install]
-WantedBy=multi-user.target