[systemd-devel] systemctl <action>; tmpfiles 'D'

Elias Probst mail at eliasprobst.eu
Sun Jan 4 15:33:47 PST 2015


I already filed bugs for both a few days ago:

systemctl hangs on start/stop/restart since ebd011d9:
  https://bugs.freedesktop.org/show_bug.cgi?id=87950

"systemd-tmpfiles --create" fails with "chmod(/var/run/samba) failed: No
such file or directory" after d7b8eec7
  https://bugs.freedesktop.org/show_bug.cgi?id=87953

Feel free to add missing details as comment!
Thanks!

- Elias

On 01/04/2015 03:59 AM, Mantas Mikulėnas wrote:
> From the series of "Living with systemd-git"…
> 
> ~ After commit d7b8eec7dc7fe30 (tmpfiles: add new line type 'v'…),
> `systemd-tmpfiles` no longer creates directories from 'D' entries
> ("Create or empty a directory"), though it still tries to chmod them:
> 
>   umask(022) = 0
>   stat("/run/samba", 0x7fff7bbf2fa0) = -1 ENOENT (No such file or directory)
>   chmod("/run/samba", 0755) = -1 ENOENT (No such file or directory)
>   writev(2, [{"chmod(/run/samba) failed: No such file or directory",
> 51}, {"\n", 1}], 2) = 52
> 
> 'd' entries work fine. samba.conf contains:
> 
>   D /run/samba 0755 - - -
>   d /var/log/samba 0755 - - -
> 
> ~ After commit ebd011d95b61a (machinectl: add new "start" verb…),
> `systemctl start/stop/restart` hangs forever while waiting for the
> action result (which *does* arrive over the bus):
> 
>   Calling manager for RestartUnit on polkit.service, replace
>   Sent message type=method_call sender=n/a
> destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1
> interface=org.freedesktop.systemd1.Manager member=RestartUnit cookie=1
> reply_cookie=0 error=n/a
>   Sent message type=method_call sender=n/a
> destination=org.freedesktop.systemd1 object=/org/freedesktop/systemd1
> interface=org.freedesktop.systemd1.Manager member=GetUnit cookie=2
> reply_cookie=0 error=n/a
>   Sent message type=method_call sender=n/a
> destination=org.freedesktop.systemd1
> object=/org/freedesktop/systemd1/unit/polkit_2eservice
> interface=org.freedesktop.DBus.Properties member=Get cookie=3
> reply_cookie=0 error=n/a
>   Adding /org/freedesktop/systemd1/job/132481 to the set
>   Got message type=signal sender=n/a destination=n/a
> object=/org/freedesktop/systemd1
> interface=org.freedesktop.systemd1.Manager member=JobNew cookie=2
> reply_cookie=0 error=n/a
>   Got message type=signal sender=n/a destination=n/a
> object=/org/freedesktop/systemd1/unit/polkit_2eservice
> interface=org.freedesktop.DBus.Properties member=PropertiesChanged
> cookie=3 reply_cookie=0 error=n/a
>   Got message type=signal sender=n/a destination=n/a
> object=/org/freedesktop/systemd1/unit/polkit_2eservice
> interface=org.freedesktop.DBus.Properties member=PropertiesChanged
> cookie=4 reply_cookie=0 error=n/a
>   Got message type=signal sender=n/a destination=n/a
> object=/org/freedesktop/systemd1/job/132481
> interface=org.freedesktop.DBus.Properties member=PropertiesChanged
> cookie=5 reply_cookie=0 error=n/a
>   Got message type=signal sender=n/a destination=n/a
> object=/org/freedesktop/systemd1/unit/polkit_2eservice
> interface=org.freedesktop.DBus.Properties member=PropertiesChanged
> cookie=8 reply_cookie=0 error=n/a
>   Got message type=signal sender=n/a destination=n/a
> object=/org/freedesktop/systemd1/unit/polkit_2eservice
> interface=org.freedesktop.DBus.Properties member=PropertiesChanged
> cookie=9 reply_cookie=0 error=n/a
>   Got message type=signal sender=n/a destination=n/a
> object=/org/freedesktop/systemd1/job/132481
> interface=org.freedesktop.DBus.Properties member=PropertiesChanged
> cookie=10 reply_cookie=0 error=n/a
>   Got message type=signal sender=n/a destination=n/a
> object=/org/freedesktop/systemd1/unit/polkit_2eservice
> interface=org.freedesktop.DBus.Properties member=PropertiesChanged
> cookie=11 reply_cookie=0 error=n/a
>   Got message type=signal sender=n/a destination=n/a
> object=/org/freedesktop/systemd1/unit/polkit_2eservice
> interface=org.freedesktop.DBus.Properties member=PropertiesChanged
> cookie=12 reply_cookie=0 error=n/a
>   Got message type=signal sender=n/a destination=n/a
> object=/org/freedesktop/systemd1/job/132481
> interface=org.freedesktop.DBus.Properties member=PropertiesChanged
> cookie=13 reply_cookie=0 error=n/a
>   Got message type=signal sender=n/a destination=n/a
> object=/org/freedesktop/systemd1/job/132481
> interface=org.freedesktop.DBus.Properties member=PropertiesChanged
> cookie=14 reply_cookie=0 error=n/a
>   Got message type=signal sender=n/a destination=n/a
> object=/org/freedesktop/systemd1
> interface=org.freedesktop.systemd1.Manager member=JobRemoved cookie=15
> reply_cookie=0 error=n/a
>   Got message type=signal sender=n/a destination=n/a
> object=/org/freedesktop/systemd1/unit/polkit_2eservice
> interface=org.freedesktop.DBus.Properties member=PropertiesChanged
> cookie=16 reply_cookie=0 error=n/a
>   Got message type=signal sender=n/a destination=n/a
> object=/org/freedesktop/systemd1/unit/polkit_2eservice
> interface=org.freedesktop.DBus.Properties member=PropertiesChanged
> cookie=17 reply_cookie=0 error=n/a
>   <hangs>
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150105/40f1c8b3/attachment.sig>


More information about the systemd-devel mailing list