[clamav-users] Error: define server type (local and/or TCP). but LocalSocket is set

Reindl Harald h.reindl at thelounge.net
Sat Jul 23 23:07:32 UTC 2016



Am 22.07.2016 um 19:17 schrieb Scott Horton:
> I checked what I think is that configuration file for systemctl:
> /usr/lib/systemd/system/clamd at .service
> and it appers to be using the conf file I think it is:
> ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf --foreground=yes
>
> Not sure what the %i resolves to. I think I saw that was amavisd somewhere.
> Maybe the user that starts it?

https://fedoramagazine.org/systemd-template-unit-files/

<service_name>@<argument>.service

The argument is a bit of text (string) passed to systemd to use in the 
unit file. The argument can be used to customize the way systemd deals 
with that specific instance of the unit. Multiple instances of the same 
unit can exist.

Two identifiers are used in the unit file for passing the instance argument.

     %i passes the argument, specially formatted (escaped)
     %I passes the argument verbatim without escaping

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20160724/97a59b5e/attachment.sig>


More information about the clamav-users mailing list