You are not logged in.

#1 2013-01-27 17:42:46

jlindgren
Member
Registered: 2011-02-27
Posts: 260

[SOLVED] systemd: What does "status=226/NAMESPACE" mean?

/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[1]: Starting Apache Web Server...
Jan 27 12:27:07 satellite systemd[1]: httpd.service: control process exited, code=exited status=226
Jan 27 12:27:07 satellite systemd[1]: Failed to start Apache Web Server.
Jan 27 12:27:07 satellite systemd[1]: 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)

Offline

#2 2013-01-27 17:54:18

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] systemd: What does "status=226/NAMESPACE" mean?

Do you also foolishly have /var/tmp symlinked to /tmp ?

Offline

#3 2013-01-27 20:01:44

jlindgren
Member
Registered: 2011-02-27
Posts: 260

Re: [SOLVED] systemd: What does "status=226/NAMESPACE" mean?

falconindy wrote:

Do you also foolishly have /var/tmp symlinked to /tmp ?

I did.  When I mount /var/tmp separately, the error disappears.  Thanks.

Offline

Board footer

Powered by FluxBB