<div dir="ltr"><div>Thank you for anser, I have created an issue (<a href="https://github.com/systemd/systemd/issues/33458">33458</a>). <br></div><div><br></div><div>Can't promise anything but can try looking into it.<br></div><div><br></div><div>Adam Nilsson<br></div></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den fre 21 juni 2024 kl 16:03 skrev Lennart Poettering <<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mi, 19.06.24 13:19, Adam Nilsson (<a href="mailto:johan.adam.nilsson@gmail.com" target="_blank">johan.adam.nilsson@gmail.com</a>) wrote:<br>
<br>
> Hi, so I am developing a service that may need to open a file under<br>
> the /dev directory that may or may not exist. As I do not want the<br>
> service to be root but the file has root permissions. I am trying to<br>
> use the OpenFile directive using the graceful option in the service<br>
> file. If the file is missing I get the following error:<br>
> <my service>.service: Could not open "/dev/<some file>": No such file<br>
> or directory<br>
> The service is still starting so that is not the issue my question is<br>
> should there still be an error in the log complaining that it where<br>
> unable to open file? Reading the documentation for OpenFile is says<br>
> that  'if "graceful" is specified, errors during file/socket opening<br>
> are ignored' so I interpreted that as any error opening the file<br>
> should be silenced but I do understand that it could be interpreted as<br>
> the service will still start if errors were found opening the file.<br>
<br>
Yes, this is a bug I guess. Can you please file an issue on github, so<br>
that we keep track of this, and don't forget to fix this?<br>
<br>
Even better: send a PR that fixes this.<br>
<br>
Lennart<br>
<br>
--<br>
Lennart Poettering, Berlin<br>
</blockquote></div>