[CentOS-de] Problem mit sytemd und amavisd

Klaus Tachtler klaus at tachtler.net
Mo Mai 6 20:03:40 UTC 2019


Hallo Andreas,

kann es evtl. sein, dass nicht der AMaViS systemd-Daemon Dein Problem  
ist, sondern eher der ClamAV-Daemon welcher zum AMaViS gehört?

Ich habe nachfolgende Konfiguration für systemd bzgl. AMaViS-Daemon  
und dem dazugehörigen ClamAV-Daemon:

# cat /usr/lib/systemd/system/amavisd.service
[Unit]
Description=Amavisd-new is an interface between MTA and content checkers.
Documentation=http://www.ijs.si/software/amavisd/#doc
After=network.target
Wants=clamd at amavisd.service
Wants=postfix.service

[Service]
Type=forking
User=amavis
Group=amavis
PIDFile=/var/run/amavisd/amavisd.pid
ExecStart=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf
ExecReload=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf reload
Restart=on-failure
PrivateTmp=true
PrivateDevices=true
CapabilityBoundingSet=
ProtectSystem=full
ProtectHome=true

[Install]
WantedBy=multi-user.target

bzw.

# cat /usr/lib/systemd/system/clamd\@.service
[Unit]
Description = clamd scanner (%i) daemon
Documentation=man:clamd(8) man:clamd.conf(5) https://www.clamav.net/documents/
# Check for database existence
# ConditionPathExistsGlob=@DBDIR@/main.{c[vl]d,inc}
# ConditionPathExistsGlob=@DBDIR@/daily.{c[vl]d,inc}
After = syslog.target nss-lookup.target network.target

[Service]
Type = forking
ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf
Restart = on-failure

Meine systemd-Dienste heissen allerdings:

# systemctl list-unit-files --type=service | grep -e enabled | grep -e  
amavis -e clam
amavisd.service                               enabled
clamd at .service                                enabled


Grüße
Klaus.

> Hallo!
>
> Ich habe hier ein hässliches Problem. amavisd startet nicht mehr.
>
> May  6 17:50:10 atlas systemd: Failed to start clamd scanner  
> (amavisd) daemon.
> May  6 17:50:10 atlas systemd: clamd at amavisd.service failed.
>
> Daraufhin habe ich alles clam-bezügliche aus der amavisd.conf auskommentiert.
> Hat nichts geholfen.
> Dann habe ich alles clam-bezügliche mit yum deinstalliert.
>
> May  6 18:16:10 atlas systemd: Cannot add dependency job for unit  
> clamd at amavisd.service, ignoring: Unit not found.
> May  6 18:16:10 atlas systemd: start request repeated too quickly  
> for amavisd.service
> May  6 18:16:10 atlas systemd: Failed to start Amavisd-new is an  
> interface between MTA and content checkers..
> May  6 18:16:10 atlas systemd: amavisd.service failed.
>
> Nach einem Neustart das gleiche Problem. Ich weis nicht, was ich  
> noch tun soll.
> Ich komme nicht dahinter, was der systemd da macht.
>
> Hat jemand Rat?
>
> Grüße
>
>   Andreas
>
> --
> PGP-Fingerprint: D392 5D21 0299 63D7 5BAE 4562 1E56 B2EA 81A2 59F1


----- Ende der Nachricht von Andreas Meyer <a.meyer at nimmini.de> -----



-- 

--------------------------------------------
e-Mail  : klaus at tachtler.net
Homepage: https://www.tachtler.net
DokuWiki: https://dokuwiki.tachtler.net
--------------------------------------------
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : nicht verfügbar
Dateityp    : application/pgp-keys
Dateigröße  : 3121 bytes
Beschreibung: Öffentlicher PGP-Schlüssel
URL         : <http://lists.centos.org/pipermail/centos-de/attachments/20190506/888e633a/attachment.bin>


Mehr Informationen über die Mailingliste CentOS-de