[CentOS-de] Problem mit sytemd und amavisd

Klaus Tachtler klaus at tachtler.net
Di Mai 7 05:19:48 UTC 2019


Hallo Andreas,

schau mal hier, das ist mein DokuWiki, welches ich mal für mich erstellt habe:


https://dokuwiki.tachtler.net/doku.php?id=tachtler:amavis_centos_7

UND **WICHTIG** -->

https://dokuwiki.tachtler.net/doku.php?id=tachtler:amavis_centos_7_-_clamav_installieren


Vielleicht hilft Dir das, Deine Konfiguration noch einmal nachzuvollziehen.


Grüße
Klaus.


> Hallo Klaus!
>
> Ich blick nicht mehr durch. Ich habe jetzt die clamd spezifischen Pakete
> wieder installiert. Der Fehler bleibt, amavis startet nicht mehr.
>
> # systemctl list-unit-files --type=service | grep -e enabled | grep  
> -e amavis -e clam
> amavisd.service                               enabled
>
> # systemctl start clamd at .service
> Failed to start clamd at .service: Unit name clamd at .service is missing  
> the instance name.
>
> # systemctl enable clamd at .service
> Failed to execute operation: Unit name clamd at .service is missing the  
> instance name.
>
> Ich habe die Dateien mit Deinen verglichen, sie sind identisch. Dass  
> amavis nicht
> mehr startet kann erst durch ein kürzliches update des systemd  
> verursacht worden
> sein. Mir ist es erst heute aufgefallen, der Server ist nur schwach  
> frequentiert.
>
> Ich habe versucht, mich auf der developerliste von systemd einzutragen, aber
> die mail bounced. Schlechter Scherz. Finde ich unmöglich. Es kann doch nicht
> sein, dass man dann einfach im Regen steht mit so einem Problem.
>
> Grüße
>
>   Andreas
>
>
> Klaus Tachtler <klaus at tachtler.net> schrieb am 06.05.19 um 22:03:40 Uhr:
>
>> 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> -----
>>
>>
>>
>
>
>
> --
> 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/20190507/dbc84992/attachment-0001.bin>


Mehr Informationen über die Mailingliste CentOS-de