Systemd can not start rtkit-daemon, ntpd, cups with PrivateTmp=yes.

Ed Greshko ed.greshko at greshko.com
Mon Nov 3 13:58:09 UTC 2014


On 11/03/14 21:05, Francis SOUYRI wrote:
> Sorry for the mailing list error, I have NAMESPACE error messages:
>
> rtkit-daemon.service - RealtimeKit Scheduling Policy Service
>    Loaded: loaded (/usr/lib/systemd/system/rtkit-daemon.service; disabled)
>    Active: failed (Result: exit-code) since Mon 2014-11-03 11:42:53 CET; 16s ago
>   Process: 5585 ExecStart=/usr/libexec/rtkit-daemon (code=exited, status=226/NAMESPACE)
>  Main PID: 5585 (code=exited, status=226/NAMESPACE)
>    CGroup: /system.slice/rtkit-daemon.service
>
>
>
> ntpd.service - Network Time Service
>    Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled)
>    Active: failed (Result: exit-code) since Mon 2014-11-03 11:45:44 CET; 36min ago
>
> Nov 03 11:45:44 francis.apec.fr systemd[5799]: Failed at step NAMESPACE spawning /usr/sbin/ntpd: Operation not permitted
> Nov 03 11:45:44 francis.apec.fr systemd[1]: ntpd.service: control process exited, code=exited status=226
> Nov 03 11:45:44 francis.apec.fr systemd[1]: Failed to start Network Time Service.
> Nov 03 11:45:44 francis.apec.fr systemd[1]: Unit ntpd.service entered failed state. 

I don't think I'm going to be much help.  Other than to point out that this is a known condition when /var/tmp is a symlink of /tmp.

Currently running my test VM ....

[egreshko at f20f ~]$ ls -ld /var/tmp /tmp
drwxrwxrwt. 22 root root 4096 Nov  3 21:01 /tmp
drwxrwxrwt. 18 root root 4096 Nov  3 20:48 /var/tmp

[egreshko at f20f ~]$ df -k /tmp /var/tmp
Filesystem                   1K-blocks     Used Available Use% Mounted on
/dev/mapper/fedora_f20f-root  29775932 13066196  15174148  47% /
/dev/mapper/fedora_f20f-root  29775932 13066196  15174148  47% /

but was previously running /tmp on tmpfs without error.

FWIW, systemd was just updated on my systems today.  You may want to try downgrading to see if that is what caused the change to your system.



-- 
If you can't laugh at yourself, others will gladly oblige.



More information about the test mailing list