[systemd-devel] [PATCH 1/2] core: Refuse to run a user instance when the system hasn't been booted with systemd.

Thomas Bächler thomas at archlinux.org
Sat Oct 6 15:46:02 PDT 2012


Am 06.10.2012 23:53, schrieb Kok, Auke-jan H:
>> Furthermore, systemctl was unable to do anything - not even 'systemctl
>> --user exit' worked - it couldn't find systemd on the bus, as it refuses
>> to look for the bus unless sd_booted() is true. You can send the signal
>> manually, but that is not what you want.
> 
> you explicitly have to set DBUS_SESSION_BUS_ADDRESS no matter what.
> Even with systemd running as pid 1 that is required. Perhaps that is a
> bug in itself.

No, I took care of a dbus session. I could even (manually, using qdbus)
send the right dbus signal to the systemd user instance so it would exit
itself, so that part worked.

Unless systemd --user is actually supposed to work in a non-systemd
environment, and someone actually fixes the problems that make it
entirely non-functional, my patch is the only sane thing to do.


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


More information about the systemd-devel mailing list