File amavis.service of Package amavisd-new
47
1
# This file is part of package amavisd-new.
2
#
3
# Copyright (c) 2011 SuSE LINUX Products GmbH, Germany.
4
# Author: Werner Fink
5
# Please send feedback to http://www.suse.de/feedback
6
#
7
# Description:
8
#
9
# Used to start the amavisd
10
# Amavisd-new is a high-performance interface between mailer (MTA) and
11
# content checkers: virus scanners or SpamAssassin. It talks to the MTA
12
# via (E)SMTP, LMTP, or by using helper programs.
13
#
14
15
[Unit]
16
Description=Amavisd-new Virus Scanner interface
17
Requires=var-run.mount
18
Wants=nss-lookup.target network.target remote-fs.target time-sync.target
19
After=var-run.mount nss-lookup.target network.target remote-fs.target time-sync.target
20
Wants=named.service clamd.service network-online.target
21
After=named.service clamd.service
22
Before=mail-transfer-agent.target
23
24
[Service]
25
Type=notify
26
NotifyAccess=main
27
KillMode=mixed
28
TimeoutStartSec=1min
29
TimeoutStopSec=3min
30
WorkingDirectory=/var/spool/amavis/tmp
31
StandardOutput=syslog
32
SyslogFacility=mail
33
SyslogIdentifier=amavis
34
ProtectSystem=full
35
ProtectHome=yes
36
NoNewPrivileges=yes
37
ExecStartPre=-/bin/echo 'Starting virus-scanner (amavisd-new):'
38
EnvironmentFile=-/etc/sysconfig/amavis
39
ExecStartPre=/usr/sbin/amavisd-milter.sh start
40
ExecStart=/usr/sbin/amavisd -P '' foreground
41
ExecReload=/usr/sbin/amavisd -P '' reload
42
ExecStop=/usr/sbin/amavisd -P '' stop
43
ExecStopPost=/usr/sbin/amavisd-milter.sh stop
44
45
[Install]
46
WantedBy=multi-user.target
47