<div dir="ltr"><div><div><div><div><div><div><div><div>Hi,<br><br>On the CentOS7 AWS with the following systemd installed:<br><br>    systemd-219-42.el7_4.4.x86_64<br><br></div>Any loginctl command that we try to run at boot time (during the AWS "user data" section of cloud-init), will hang and then timeout.<br><br></div>The same loginctl command run after you ssh into the box and become root, works fine.<br><br></div>I can currently get around this problem by running:<br><br></div>    systemd-run loginctl ....<br><br></div><div>which implies that something about the boot time execution environment doesn't allow loginctl to run.<br><br></div>When I strace the hanging command, I can see that it's waiting on /run/dbus/system_bus_socket.<br><br></div><div>I don't think I have a unit ordering problem because systemd-run is able to run the command. It must be the environment.<br><br></div>Sorry for what must be a dumb question, but what is different about the execution environment at boot time that is preventing loginctl from running?<br><br></div>Thanks,<br><br></div>Jeff<br></div>