[clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
Reindl Harald
h.reindl at thelounge.net
Wed Oct 17 17:08:09 UTC 2018
Am 17.10.18 um 18:21 schrieb Dino Edwards:
> ExecStartPre=-/bin/mkdir /run/clamav
> ExecStartPre=/bin/chown clamav /run/clamav
you don't get an error, an error is when the service don't start
"If I delete the /var/run/clamav directory, I don’t get the error, but
if I restart clamd again I get the error again. I’m not sure what the
problem is" - idiot there is no problem
"ExecStartPre=-/bin/mkdir /run/clamav" is prefixed with - so that the
service don't fail in case the directory exists and "mkdir" natuarlly
fails when a directory already exists
when you delete the directory - guess what - it get created and no
warning - frankly this is not a clamav topic at all but lack of basic
understanding of your system
More information about the clamav-users
mailing list