在Kali [2017.01]上遇到过类似的问题,并且交替显示注销延迟:
“正在为用户Debian-gdm的会话c1运行停止作业”
“正在为UID 132的用户管理器运行停止作业”
我设法通过NetworkManager
在关机之前先停止或禁用它来摆脱一个错误,方法是:
# To get rid of: "A stop job is running for User manager for UID 132"
systemctl disable NetworkManager
systemctl stop NetworkManager
重新启动时,这可能应该已修复或以其他方式解决。
至于其他延迟,我没有成功。看来可能与GDM(Gnome Display Manager)有关,pulseaudio
或者dbus
。因此,由于我无法找出问题所在,所以唯一的方法是像其他帖子中提到的那样设置DefaultTimeout*Sec=5s
条目system.conf
。
其他可能需要调查的问题显示在:
# systemctl --state=masked --state=not-found --state=failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● tmp.mount not-found inactive dead tmp.mount
● auditd.service not-found inactive dead auditd.service
● console-screen.service not-found inactive dead console-screen.service
● festival.service not-found inactive dead festival.service
● kbd.service not-found inactive dead kbd.service
● live-tools.service masked inactive dead live-tools.service
● plymouth-quit-wait.service not-found inactive dead plymouth-quit-wait.service
● plymouth-quit.service not-found inactive dead plymouth-quit.service
● plymouth-start.service not-found inactive dead plymouth-start.service
● systemd-sysusers.service not-found inactive dead systemd-sysusers.service
● systemd-update-done.service not-found inactive dead systemd-update-done.service
● systemd-vconsole-setup.service not-found inactive dead systemd-vconsole-setup.service
● syslog.target not-found inactive dead syslog.target
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
和:
# systemd-cgls -u user-132.slice
Unit user-132.slice (/user.slice/user-132.slice):
├─user@132.service
│ ├─pulseaudio.service
│ │ └─739 /usr/bin/pulseaudio --daemonize=no
│ ├─at-spi-dbus-bus.service
│ │ ├─704 /usr/lib/at-spi2-core/at-spi-bus-launcher
│ │ ├─709 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
│ │ └─712 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
│ ├─dbus.service
│ │ └─694 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
│ └─init.scope
│ ├─597 /lib/systemd/systemd --user
│ └─600 (sd-pam)
└─session-c1.scope
├─577 gdm-session-worker [pam/gdm-launch-environment]
├─613 /usr/lib/gdm3/gdm-x-session gnome-session --autostart /usr/share/gdm/greeter/autostart
├─618 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/132/gdm/Xauthority -background none -noreset -keeptty -verbose 3
├─697 /usr/lib/gnome-session/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart
├─721 /usr/bin/gnome-shell
└─752 /usr/lib/gnome-settings-daemon/gnome-settings-daemon
dmesg
您粘贴的输出信息不是很丰富-当您按下“关闭”按钮(系统启动后3048秒)时,WiFi断开连接,直到1m30s计时器到期并且系统继续关闭(3139秒)后,WiFi才断开。