root@subtle-cobra:~# dpkg-query -W systemd
systemd 229-4ubuntu21.4
root@subtle-cobra:~# systemctl mask systemd-logind
Created symlink from /etc/systemd/system/systemd-logind.service to /dev/null.
root@subtle-cobra:~# systemctl stop systemd-logind
root@subtle-cobra:~# shutdown +1
Failed to set wall message, ignoring: Unit systemd-logind.service is masked.
Failed to call ScheduleShutdown in logind, proceeding with immediate shutdown: Unit systemd-logind.service is masked.
root@subtle-cobra:~# echo $?
1
root@subtle-cobra:~# sleep 60
root@subtle-cobra:~# dpkg-query -W systemd
systemd 229-4ubuntu21.5
root@subtle-cobra:~# shutdown +1
Failed to set wall message, ignoring: Unit systemd-logind.service is masked.
Failed to call ScheduleShutdown in logind, proceeding with immediate shutdown: Unit systemd-logind.service is masked.
root@subtle-cobra:~# xnox@sochi:~$
(container shutdown correctly)
root@subtle- cobra:~ # dpkg-query -W systemd cobra:~ # systemctl mask systemd-logind system/ systemd- logind. service to /dev/null. cobra:~ # systemctl stop systemd-logind cobra:~ # shutdown +1 logind. service is masked. logind. service is masked. cobra:~ # echo $? cobra:~ # sleep 60
systemd 229-4ubuntu21.4
root@subtle-
Created symlink from /etc/systemd/
root@subtle-
root@subtle-
Failed to set wall message, ignoring: Unit systemd-
Failed to call ScheduleShutdown in logind, proceeding with immediate shutdown: Unit systemd-
root@subtle-
1
root@subtle-
root@subtle- cobra:~ # nano /etc/apt/ sources. list cobra:~ # apt update cobra:~ # apt full-upgrade
root@subtle-
root@subtle-
root@subtle- cobra:~ # dpkg-query -W systemd cobra:~ # shutdown +1 logind. service is masked. logind. service is masked. cobra:~ # xnox@sochi:~$
systemd 229-4ubuntu21.5
root@subtle-
Failed to set wall message, ignoring: Unit systemd-
Failed to call ScheduleShutdown in logind, proceeding with immediate shutdown: Unit systemd-
root@subtle-
(container shutdown correctly)