systemctl: if no logind, don't try to schedule shutdown
authorSamuel Morris <samorris@lexmark.com>
Tue, 28 Aug 2018 14:40:51 +0000 (10:40 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 29 Aug 2018 15:51:53 +0000 (17:51 +0200)
commitc68867da320de296917820e5a76e902a8a86be5a
tree873856368cb0e8676398791fb7c954a594f60b96
parenta204d54b8e49f1ff04999aca7a732f54fcddb03f
systemctl: if no logind, don't try to schedule shutdown

If logind is not supported, don't try to schedule a shutdown,
immediately poweroff. This is the behavior indicated by the current
message given to the user, but the command is returning an error. I
believe this was broken on this commit:
7f96539d45028650f2ba9452095473a9c455d84b
src/systemctl/systemctl.c