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
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 : /home/jo# shutdown +1 -r "REBOOT!" p.login1' : timed out (service_ start_timeout= 25000ms) /home/jo# echo $?
# systemctl stop dbus.service
# systemctl stop dbus.socket
# shutdown +1 -r "REBOOT!"
root@focal:
Failed to set wall message, ignoring: Failed to activate service 'org.freedeskto
Failed to call ScheduleShutdown in logind, no action will be taken: Connection timed out
root@focal:
1
For Groovy : p.login1' : timed out (service_ start_timeout= 25000ms) p.login1' : timed out (service_ start_timeout= 25000ms) /home/jo# echo $?
# systemctl stop dbus.service
# systemctl stop dbus.socket
# shutdown +1 -r "REBOOT!"
Failed to set wall message, ignoring: Failed to activate service 'org.freedeskto
Failed to call ScheduleShutdown in logind, no action will be taken: Failed to activate service 'org.freedeskto
root@groovy:
1