Skip to content

Commit 54d5763

Browse files
committed
test: restart logind and test
Restarting journald and dbus also causes problems for systemd-logind, so restart it too and test with loginctl Signed-off-by: Rich Megginson <rmeggins@redhat.com>
1 parent 176c89e commit 54d5763

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/tests_imuxsock_files.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
done
132132
# dbus needs to be restarted after journald or services will not be able to
133133
# listen for dbus
134-
for service in dbus dbus-broker; do
134+
for service in dbus dbus-broker systemd-logind; do
135135
if systemctl is-active "$service"; then
136136
systemctl restart "$service" || { systemctl status "$service" || :; journalctl -ex; }
137137
fi
@@ -140,6 +140,8 @@
140140
logger tests_imuxsock_files_ensure_journal_working
141141
sleep 1
142142
journalctl -ex | grep tests_imuxsock_files_ensure_journal_working
143+
# ensure loginctl is working - if not it will error with a timeout
144+
loginctl list-sessions
143145
changed_when: true
144146
vars:
145147
__journald_units:

0 commit comments

Comments
 (0)