Nginx init-script not working when /var/tmp is bind-mounted to /tmp
The nginx init script requires an existing directory /var/tmp/nginx.
In case the /var/tmp directory is bind-mounted to /tmp and therefore wiped on each reboot, nginx refuses to start.
It is suggested to create the missing directory in case it is not there yet.
See the proposal in the attached patch file
(from redmine: issue id 10258, created on 2019-04-15, closed on 2019-06-03)
Revert "main/nginx: move /var/lib/nginx/tmp to /var/tmp/nginx" FHS-3.0 says that /var/tmp should survive reboots, but for it is common practice to ignore FHS for security reasons and wipe dirs that are world writable. There is no good reason to store nginx data under a world writable directory, so move it back to /var/lib/nginx/tmp. Other distros does something similar. fixes #9246 fixes #10258 ref #9364 This reverts commit d6d624a149ca62af8679baf9cc99ce1354c190f0.