nginx installation does not create /run/nginx directory
by default, nginx create PID file at /run/nginx/nginx.pid
,
but nginx package does not create directory /run/nginx
<code class="text">
/ # cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.9.2
PRETTY_NAME="Alpine Linux v3.9"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
/ # apk add nginx
(1/2) Installing pcre (8.42-r1)
(2/2) Installing nginx (1.14.2-r0)
Executing nginx-1.14.2-r0.pre-install
Executing busybox-1.29.3-r10.trigger
OK: 11 MiB in 18 packages
/ # nginx -g "daemon off;"
nginx: [emerg] open() "/run/nginx/nginx.pid" failed (2: No such file or directory)
/ #
</code>
(from redmine: issue id 10118, created on 2019-03-15, closed on 2019-04-08)
- Relations:
- relates #6380 (closed)