You are not logged in.
I run Arch with KDE Plasma. Whenever I fire up (and then close down) an AVD (Android Virtual Device), my computer takes ages to shutdown. During the shutdown process, I see this:
A stop job is running for User Manager for UID 1000 (10s / 1min 49s)This only happens if I use an AVD. If I don't fire up an AVD, shutdown is fast. So I'm guessing just closing the AVD is not closing everything, hence the reason why the shutdown takes so long.
How can I diagnose the issue to find out exactly what's blocking the shutdown?
Last edited by andyturfer (2025-12-15 13:14:23)
Offline
I found a solution! Either run this before shutting down or rebooting:
adb kill-serverOr add this systemd shutdown unit:
# /etc/systemd/system/adb-kill.service
[Unit]
Description=Kill ADB server on shutdown or reboot
DefaultDependencies=no
Before=shutdown.target reboot.target halt.target poweroff.target
[Service]
Type=oneshot
ExecStart=/usr/bin/adb kill-server
RemainAfterExit=yes
[Install]
WantedBy=shutdown.targetThen enable the unit:
$ sudo systemctl daemon-reload
$ sudo sytsemctl enable --now adb-kill.serviceAfter doing this, I no longer get the "...stop job is waiting..." delays when rebooting or shutting down.
Offline