The foreground option prevents clamd from forking and running in the background.
For users who run it from the terminal it means that it stays in the foreground 
and the user will continue to see output from clamd on the terminal, will need 
a new terminal to run anything else, and closing the terminal will exit clamd.

You can enable foreground behavior either using:
1.  the "Foreground yes" config option clamd.conf
2.  using the command line argument "--foreground"

If you're seeing "clamd --foreground=true" in htop, then clamd was started with 
the command line option --foreground=true.  Changing the clamd.conf won't 
affect that.

Neither is "better".  It just depends on your use case.

Micah Snyder
ClamAV Development
Cisco Systems, Inc.

On Apr 11, 2018, at 4:24 AM,<> 

Dear all,

On my Raspbian system htop reports clamd runs with the -foreground=true
option, although I have commented that out in the configs.

What does that option mean? Is background better? And if so, how can I get
the clam moving there?

BTW, I couldn't find that kind of info in the manual or online. Should I
have looked for it elsewhere?


Paul Guijt

clamav-users mailing list<>

Help us build a comprehensive ClamAV guide:

clamav-users mailing list

Help us build a comprehensive ClamAV guide:

Reply via email to