FS#41835 - [clamav] Remove daemonizeing

Attached to Project: Arch Linux
Opened by Silvio Knizek (killermoehre) - Friday, 05 September 2014, 12:25 GMT
Last edited by Gaetan Bisson (vesath) - Wednesday, 24 September 2014, 02:03 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Right now the service file for clamd has the tpye forking. Since services shouldn't fork if possible, I propose to add "Foreground yes" to the default clamd.conf shipped by with the package and setting the Tpye to "simple".

The same with the freshclam.service, which contains the -d switch for running in daemon mode.
This task depends upon

Closed by  Gaetan Bisson (vesath)
Wednesday, 24 September 2014, 02:03 GMT
Reason for closing:  No response
Comment by Dave Reisner (falconindy) - Friday, 05 September 2014, 12:35 GMT
> Since services shouldn't fork if possible
And this is the key point -- if possible. If you ever need to order another service on successful startup of clamav/freshclam, you *must* keep Type=forking. For Type=simple daemons, systemd reports the service as "active" immediately (a would-be race with clamd opening its sockets). It seems very reasonable to order certain services after clamd, so I don't think your suggestion makes sense -- particularly when the only thing potentially gained here is a small deduction on your boot time.

Loading...