Am 13.04.2018 um 12:34 schrieb paul.gu...@gmail.com:
> Thanks, everyone!
> 
> I keep learning new things 😊

but "because in case of systemd, forking to background is useless" is
simply as *WRONG* as something can be

'foreground' implies Type=simple and if you have ordered services after
clamd they are immediately started while clamd is *not* ready to accept
connections because it's loading the signatures which can take a long time

it breaks a startup chain like "clamd -> clamav-milter -> postfix"
ordered with Before/After and i even wrote a distribution-bugreport to
switch from foreground to forking because clamav-milter reported errors
at boot
________________

https://www.freedesktop.org/software/systemd/man/systemd.service.html

If set to simple (the default if neither Type= nor BusName=, but
ExecStart= are specified), it is expected that the process configured
with ExecStart= is the main process of the service. In this mode, if the
process offers functionality to other processes on the system, its
communication channels should be installed before the daemon is started
up (e.g. sockets set up by systemd, via socket activation), as systemd
will immediately proceed starting follow-up units.

> -----Oorspronkelijk bericht-----
> Van: clamav-users <clamav-users-boun...@lists.clamav.net> Namens Matus UHLAR 
> - fantomas
> Verzonden: donderdag 12 april 2018 18:04
> Aan: clamav-users@lists.clamav.net
> Onderwerp: Re: [clamav-users] --foreground=true
> 
> On 11.04.18 10:24, paul.gu...@gmail.com wrote:
>> On my Raspbian system htop reports clamd runs with the -foreground=true 
>> option, although I have commented that out in the configs.
> 
> your raspbian apparently uses systemd, process manager who prefers to run 
> applications in foreground (because in case of systemd, forking to background 
> is useless).
> --
> Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> A day without sunshine is like, night.
> _______________________________________________
> clamav-users mailing list
> clamav-users@lists.clamav.net
> http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
> 
> 
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
> 
> http://www.clamav.net/contact.html#ml
> 
> _______________________________________________
> clamav-users mailing list
> clamav-users@lists.clamav.net
> http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
> 
> 
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
> 
> http://www.clamav.net/contact.html#ml
> 

-- 

Reindl Harald
the lounge interactive design GmbH
A-1060 Vienna, Hofmühlgasse 17
CTO / CISO / Software-Development
m: +43 676 40 221 40
p: +43 1 595 3999 33
http://www.thelounge.net/

GPG-Public-Key:
https://arrakis-tls.thelounge.net/gpg/h.reindl_thelounge.net.pub.txt
_______________________________________________
clamav-users mailing list
clamav-users@lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to