[systemd-devel] [systemd-nspawn] nginx: [emerg] open() "/dev/stderr" failed (6: No such device or address)
Peter Paule
systemd-devel at fedux.org
Wed Apr 29 11:14:37 PDT 2015
> What precisely is the setting you picked?
I used this setting:
error_log /dev/stderr warn
But I must admit, I thought that this is the default of the Arch Linux
package. But they use this setting in their nginx-package:
error_log stderr
Here's their service-unit
[Unit]
Description=A high performance web server and a reverse proxy server
After=network.target
[Service]
Type=forking
PIDFile=/run/nginx.pid
PrivateDevices=yes
SyslogLevel=err
ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; error_log stderr;'
ExecReload=/usr/bin/kill -HUP $MAINPID
KillSignal=SIGQUIT
KillMode=mixed
[Install]
WantedBy=multi-user.target
I tried that setting in my virtual machine and it worked like a charm:
error_log stderr warn;
Sorry for the noise. Should have used this setting from the beginning. Thanks a lot for the help.
/pp
More information about the systemd-devel
mailing list