#1078262 nginx: Consider adding nginx.tmpfiles for /var/*/nginx

#1078262#5
Date:
2024-08-09 09:09:30 UTC
From:
To:
Dear Maintainer,

if the system starts with a empty /var directory, nginx fails to start
with the following error message:

Aug 09 08:57:08 ie-test systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
Aug 09 08:57:08 ie-test nginx[961]: 2024/08/09 08:57:08 [emerg] 961#961: mkdir() "/var/lib/nginx/body" failed (2: No such file or directory)

An possible solution is to create nginx.tmpfiles with the following
content:

d var/lib/nginx
d var/log/nginx

Best regards
Quirin