# Wall / Mesg - Blank reboot message/SSH hangs on reboot (doenst disconnect cleanly)

**URL:** <https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503>\
**Category:** Troubleshooting\
**Created:** [7 October 2025 13:25 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503 "2025-10-07T13:25:39Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![henryjfry](https://dietpi.com/forum/user_avatar/dietpi.com/henryjfry/32/8338_2.png) [@henryjfry](https://dietpi.com/forum/u/henryjfry)\
**Post date:** [7 October 2025 13:25 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503/1 "2025-10-07T13:25:39Z")

</div>

Im aware of:

> <https://github.com/MichaIng/DietPi/issues/6604>
>
> \### Creating a bug report/issue
> 
> \#### Required Information
> \- DietPi version |… \`G\_DIETPI\_VERSION\_CORE=8
> G\_DIETPI\_VERSION\_SUB=21
> G\_DIETPI\_VERSION\_RC=1
> G\_GITBRANCH='master'
> G\_GITOWNER='MichaIng'
> \`
> \- Distro version | \`bookworm\`
> \- Kernel version | \`Linux Server 6.1.50-current-rockchip64 #3 SMP PREEMPT Wed Aug 30 14:11:13 UTC 2023 aarch64 GNU/Linux\`
> \- SBC model | \`ROCK64 (aarch64)\`
> 
> \#### Additional Information (if applicable)
> \- Software title | reboot
> \- Was the software title installed freshly or updated/migrated? Not actively
> \- Can this issue be replicated on a fresh installation of DietPi? Not sure, but this happens on two different servers
> 
> \#### Steps to reproduce
> 1. Connect through SSH
> 2. Perform a reboot through \`sudo reboot\`
> 
> \#### Expected behaviour
> \- The SBC shall reboot without warnings
> 
> \#### Actual behaviour
> 
> 
> The SBC outputs this warning before actually rebooting
> 
> \`\`\`
> Failed to set wall message, ignoring: Unit dbus-org.freedesktop.login1.service failed to load properly, please adjust/correct and reload service manager: File exists
> Call to Reboot failed: Unit dbus-org.freedesktop.login1.service failed to load properly, please adjust/correct and reload service manager: File exists
> \`\`\`
> 
> \#### Extra details
> The system actually reboots, so it's just a warning, but this may be a symptom of something worse.
> 
> This happens on both servers I have (both based on the same rockchip, but different SBCs).
> 
> This started happening recently

And on the newest DietPi my SSH session would just stop until it eventually decided it couldnt connect anymore on reboot (which is very annoying).

Having fixed this before i reinstalled:

```auto
sudo apt-get install libpam-systemd dbus

```

And did the steps

```auto
sudo systemctl unmask systemd-logind
sudo systemctl start systemd-logind

```

```auto
sudo systemctl enable dbus
sudo systemctl start dbus

```

And also:

```auto
sudo nano /etc/systemd/system/ssh-user-sessions.service

```

```auto
[Unit]
Description=Shutdown all ssh sessions before network
After=network.target

[Service]
TimeoutStartSec=0
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/true
ExecStop=/usr/bin/killall sshd

[Install]
WantedBy=multi-user.target

```

Which seems to fix the SSH session just hanging and not disconnecting on reboot.

But no matter what I do i cant get a message to say

“The system is going down for system reboot NOW!”

Why is this disabled in dietpi and how can i fix it properly?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [7 October 2025 13:43 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503/2 "2025-10-07T13:43:35Z")

</div>

> [@henryjfry](#):
>
> But no matter what I do i cant get a message to say
> 
> “The system is going down for system reboot NOW!”

did you tried

```auto
sudo shutdown -r +1 "Rebooting in 1 minute for maintenance"

```

---

<div class="post-metadata">

**Author:** ![henryjfry](https://dietpi.com/forum/user_avatar/dietpi.com/henryjfry/32/8338_2.png) [@henryjfry](https://dietpi.com/forum/u/henryjfry)\
**Post date:** [7 October 2025 13:44 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503/3 "2025-10-07T13:44:59Z")

</div>

Yes but why doesnt “sudo reboot” just do what its supposed to?

And given that it doenst how do i fix it?

echo “hello world” | sudo wall

Doesnt display any messages so manually fixing the “reboot” alias doesnt fix anything

I dont understand why dietpi now out of the box deliberately changes default behaviour so that the message is suppressed and the ssh session doesnt disconnect

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [7 October 2025 14:20 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503/4 "2025-10-07T14:20:02Z")

</div>

> [@henryjfry](#):
>
> and the ssh session doesnt disconnect

for me SSH is disconnecting always on all my systems. Never have seen a report on this before

> [@henryjfry](#):
>
> I dont understand why dietpi now out of the box deliberately changes default behaviour

`reboot` command itself does not send a wall message best to my knowledge. Only `shutdown` can do this

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [7 October 2025 15:22 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503/5 "2025-10-07T15:22:10Z")

</div>

> [@henryjfry](#):
>
> I dont understand why dietpi now out of the box deliberately changes default behaviour so that the message is suppressed and the ssh session doesnt disconnect

It’s the diet part of DietPi, so ttys, dbus and systemd-logind are disabled.

But I don’t get the ssh and reboot part, on my system I also get a disconnect when it loses SSH connection.  
What SSH server and client do you use?

For testing I did:

```auto
apt-get install -y libpam-systemd dbus
systemctl unmask systemd-logind
systemctl enable systemd-logind
systemctl start systemd-logind
systemctl status systemd-logind
systemctl enable dbus
systemctl start dbus
echo "Hello world" | sudo wall

```

And got no message, because `/run/utmp` is still missing.  
So I did:

```auto
touch /run/utmp
chmod 664 /run/utmp
chown root:utmp /run/utmp

```

And now it’s working.

And this will only work with systemctl, reboot does not send a message.  
But you could set an alias for reboot, to use systemctl under the hood.

---

<div class="post-metadata">

**Author:** ![henryjfry](https://dietpi.com/forum/user_avatar/dietpi.com/henryjfry/32/8338_2.png) [@henryjfry](https://dietpi.com/forum/u/henryjfry)\
**Post date:** [7 October 2025 19:29 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503/6 "2025-10-07T19:29:15Z")

</div>

The SSH sessions and SFTP sessions eventually disconnect themselves, but they dont get the “exit”/“The system is going down for system reboot NOW!” message so dont exit cleanly.

I dont want my ssh session to stall until it decides it can disconnect. Particularly when there is a linux process which should be implemented to disconnect and save bash\_local and whatever else happens when a clean reboot is performed.

Im not sure why the devs of dietpi thought disabling the thing which kills active connections when someone requests a reboot was a good idea.

But not killing active SSH connections on reboot is absolutely a bug.

The missing wall message is just annoying.

---

<div class="post-metadata">

**Author:** ![henryjfry](https://dietpi.com/forum/user_avatar/dietpi.com/henryjfry/32/8338_2.png) [@henryjfry](https://dietpi.com/forum/u/henryjfry)\
**Post date:** [7 October 2025 19:34 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503/7 "2025-10-07T19:34:24Z")

</div>

> [@Jappe](#):
>
> ```auto
> systemctl enable dbus
> systemctl start dbus
> 
> ```

I’ve got a clean SSH disconnect now but no wall.

I can see a wall message and I should have already aliased reboot but its not working:

```auto
\home\dietpi\.bashrc

```

```auto
alias reboot='echo "The system is going down for system reboot NOW!" | sudo wall ; /usr/bin/sudo /bin/systemctl --force reboot'

alias poweroff='echo "The system is going down for system halt NOW!" | sudo wall ; /usr/bin/sudo /bin/systemctl --force poweroff'

```

alias seems to be preempted?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [7 October 2025 19:43 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503/8 "2025-10-07T19:43:09Z")

</div>

If you want the message always sent, even when someone just runs `reboot`, you can use a `systemd pre-reboot-message service`:

```auto
sudo nano /etc/systemd/system/pre-reboot-message.service

```

add

```auto
[Unit]
Description=Broadcast message before reboot
Before=reboot.target
DefaultDependencies=no

[Service]
Type=oneshot
ExecStart=/usr/bin/wall "🔁 System is rebooting now. Please save your work."

[Install]
WantedBy=reboot.target

```

and do

```auto
sudo systemctl enable pre-reboot-message.service

```

This ensures any reboot — whether from `reboot`, `shutdown -r`, or `systemctl reboot` — will show a message first.

---

<div class="post-metadata">

**Author:** ![henryjfry](https://dietpi.com/forum/user_avatar/dietpi.com/henryjfry/32/8338_2.png) [@henryjfry](https://dietpi.com/forum/u/henryjfry)\
**Post date:** [7 October 2025 19:49 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503/9 "2025-10-07T19:49:37Z")

</div>

Ok thats cool but ive just actually tried:

```auto
/bin/systemctl --force reboot

```

And got no wall message either.

So it appears this is not persistent:

```auto
sudo touch /run/utmp
sudo chown root:utmp /run/utmp
sudo chmod 664 /run/utmp

```

And the rule to create it doesnt exist.

```auto
sudo tee /etc/tmpfiles.d/utmp.conf >/dev/null <<'EOF'
f /run/utmp 0664 root utmp -
EOF

sudo systemd-tmpfiles --create

```

---

<div class="post-metadata">

**Author:** ![henryjfry](https://dietpi.com/forum/user_avatar/dietpi.com/henryjfry/32/8338_2.png) [@henryjfry](https://dietpi.com/forum/u/henryjfry)\
**Post date:** [7 October 2025 19:53 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503/10 "2025-10-07T19:53:47Z")

</div>

But it still doesnt load the wall when i:

```auto
sudo /bin/systemctl --force reboot

```

Like you kind of need to know if you get booted off the network that there is a reason?

I dont understand the rationalle for disabling this message and not having a config option to re-enable it for multi user environments.  
(and graceful exit, which is the important part)

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [7 October 2025 20:11 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503/11 "2025-10-07T20:11:21Z")

</div>

Hmm working for me

client 1 submitting ` shutdown -r`

```auto
root@DietPi5:~# shutdown -r
Reboot scheduled for Tue 2025-10-07 22:08:13 CEST, use 'shutdown -c' to cancel.
root@DietPi5:~#

```

client 2 receiving the message

```auto
root@DietPi5:~#
Broadcast message from root@DietPi5 on pts/0 (Tue 2025-10-07 22:07:13 CEST):

The system will reboot at Tue 2025-10-07 22:08:13 CEST!

root@DietPi5:~#

```

you would need to do following beforhand

> [@Jappe](#):
>
> ```auto
> apt-get install -y libpam-systemd dbus
> systemctl unmask systemd-logind
> systemctl enable systemd-logind
> systemctl start systemd-logind
> systemctl status systemd-logind
> systemctl enable dbus
> systemctl start dbus
> 
> ```

---

<div class="post-metadata">

**Author:** ![henryjfry](https://dietpi.com/forum/user_avatar/dietpi.com/henryjfry/32/8338_2.png) [@henryjfry](https://dietpi.com/forum/u/henryjfry)\
**Post date:** [7 October 2025 21:43 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503/12 "2025-10-07T21:43:39Z")

</div>

> [@Joulinar](#):
>
> shutdown -r

Having:

```auto

apt-get install -y libpam-systemd dbus
systemctl unmask systemd-logind
systemctl enable systemd-logind
systemctl start systemd-logind
systemctl status systemd-logind
systemctl enable dbus
systemctl start dbus

```

Fresh install that did send the message but its not gracefully disconnecting the ssh/sftp session hangs/timesout.

---

<div class="post-metadata">

**Author:** ![henryjfry](https://dietpi.com/forum/user_avatar/dietpi.com/henryjfry/32/8338_2.png) [@henryjfry](https://dietpi.com/forum/u/henryjfry)\
**Post date:** [7 October 2025 21:55 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503/13 "2025-10-07T21:55:16Z")

</div>

This does the job from a fresh install:

openSSH

```auto

apt-get install -y libpam-systemd dbus
systemctl unmask systemd-logind
systemctl enable systemd-logind
systemctl start systemd-logind
systemctl status systemd-logind
systemctl enable dbus
systemctl start dbus

```

Then creating a user reboot which calls “/bin/systemctl --force reboot” actuall disconnects the shell sessions while the dietpi reboot doesnt.

```auto
sudo nano /usr/local/bin/reboot
sudo chmod +x /usr/local/bin/reboot

#!/bin/bash

sudo touch /run/utmp
sudo chown root:utmp /run/utmp
sudo chmod 664 /run/utmp
echo "The system is going down for system reboot NOW!" | sudo wall
/bin/systemctl --force reboot

```

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [4 April 2026 09:55 UTC](https://dietpi.com/forum/t/wall-mesg-blank-reboot-message-ssh-hangs-on-reboot-doenst-disconnect-cleanly/24503/14 "2026-04-04T09:55:52Z")

</div>

Closed on 4 April 2026 09:55 UTC

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.
