[clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists

Reindl Harald h.reindl at thelounge.net
Wed Oct 17 15:38:57 UTC 2018



Am 17.10.18 um 14:33 schrieb Dino Edwards:
> How about you contribute something of value to this discussion instead of a link about how this was added in Linux 7 years ago so you can show everyone how clever you are. 

i contributed the link which explains how these folders are supposed to
get created at boot and any mkdir/chown dance is plain wrong - it's not
my fault that you don't recognize input when you get it
https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html

and if one insists in "ExecStartPre=/bin/mkdir /run/clamav" he should
make it proper as "ExecStartPre=-/bin/mkdir /run/clamav" which don't
fail the whole service in case the directory already exists

> -----Original Message-----
> From: Reindl Harald [mailto:h.reindl at thelounge.net] 
> Sent: Wednesday, October 17, 2018 8:29 AM
> To: ClamAV users ML <clamav-users at lists.clamav.net>; Dino Edwards <dino.edwards at mydirectmail.net>
> Subject: Re: [clamav-users] /bin/mkdir: cannot create directory ‘/run/clamav’: File exists
> 
> 
> Am 17.10.18 um 13:12 schrieb Dino Edwards:
>> Good morning? 
> 
> what about read posted links and don't strip context?
> 
> /run was introduced 7 years ago and the discussion about it made it to every it news portal and that's what i mean when somebody is surprised that /run is a tmpfs available at early boot which also means you need to make sure folders there are created at boot
> 
> https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
> 
>> Am 16.10.18 um 19:12 schrieb Dino Edwards:
>>> good morning in 2018
> 
> 
> -------- Weitergeleitete Nachricht --------
> 
> Am 16.10.18 um 19:12 schrieb Dino Edwards:
>> Answering my own question on the /var/run and the /run directories.
>> There is a link between the two
> good morning in 2018
> 
> http://www.h-online.com/open/news/item/Linux-distributions-to-include-run-directory-1219006.html



More information about the clamav-users mailing list