nginx fails on tmpfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nginx |
Invalid
|
Undecided
|
Unassigned |
Bug Description
### Behavior
~# systemctl start nginx
Job for nginx.service failed because the control process exited with error code.
~# systemctl status nginx
Mar 26 21:47:53 hostname nginx[6285]: nginx: [alert] could not open error log file: open() "/var/log/
Mar 26 21:47:53 hostname nginx[6285]: 2018/03/26 21:47:53 [emerg] 6285#6285: open() "/var/log/
### Resolution
~# mkdir -pv /var/log/nginx/
~# touch /var/log/
~# touch /var/log/
### Expected Behavior
Automatically do that.
### Setup
~# cat /etc/fstab
tmpfs /var/log tmpfs defaults,
[...]
nginx version 1.10.3-1+deb9u1 (the current in Raspbian 9.4)
Raspbian is not supported by this NGINX distribution group/project on Launchpad.
We do not provide the Raspbian packages. The Raspbian packages are built and based off of Debian directly.