Comment 17 for bug 1911187

Revision history for this message
Ioanna Alifieraki (joalif) wrote :

Further verification that shows the non-zero return value of shutdown command,
when it fails to schedule a reboot and takes no action.

For Bionic :
# systemctl stop dbus.service
# systemctl stop dbus.socket
# shutdown +1 -r "REBOOT!"
Failed to set wall message, ignoring: Refusing activation, D-Bus is shutting down.
Failed to call ScheduleShutdown in logind, no action will be taken: Refusing activation, D-Bus is shutting down.
root@bionic:~# echo $?
1

For Focal :
# systemctl stop dbus.service
# systemctl stop dbus.socket
# shutdown +1 -r "REBOOT!"
root@focal:/home/jo# shutdown +1 -r "REBOOT!"
Failed to set wall message, ignoring: Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
Failed to call ScheduleShutdown in logind, no action will be taken: Connection timed out
root@focal:/home/jo# echo $?
1

For Groovy :
# systemctl stop dbus.service
# systemctl stop dbus.socket
# shutdown +1 -r "REBOOT!"
Failed to set wall message, ignoring: Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
Failed to call ScheduleShutdown in logind, no action will be taken: Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
root@groovy:/home/jo# echo $?
1