/var/log is on tmpfs here, and Apache refuses to start without /var/log/httpd already being created, so I am trying to create that folder from http.service. I added the line:
ExecStartPre=/usr/bin/mkdir -p /var/log/httpd
Now I am getting a "status=226/NAMESPACE" error. I am confused about what this error means. I do know that if I comment out "PrivateTmp=true" from the service file, the error goes away, but I suppose doing that defeats some security measure.
httpd.service - Apache Web Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled) Active: failed (Result: exit-code) since Sun 2013-01-27 12:27:07 EST; 8s ago Process: 671 ExecStartPre=/usr/bin/mkdir -p /var/log/httpd (code=exited, status=226/NAMESPACE) Main PID: 644 (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/httpd.service Jan 27 12:27:07 satellite systemd: Starting Apache Web Server... Jan 27 12:27:07 satellite systemd: httpd.service: control process exited, code=exited status=226 Jan 27 12:27:07 satellite systemd: Failed to start Apache Web Server. Jan 27 12:27:07 satellite systemd: Unit httpd.service entered failed state
Is there another way to create /var/log/httpd without disabling PrivateTmp?
Last edited by jlindgren (2013-01-27 20:02:25)
Do you also foolishly have /var/tmp symlinked to /tmp ?
I did. When I mount /var/tmp separately, the error disappears. Thanks.