当重新启动我的 Debian 机器时,我的xdg-document-portal
服务超时了 90 秒:
May 25 22:52:02 qaa systemd[2230]: Stopping xdg-document-portal.service - flatpak document portal service...
[...]
May 25 22:52:04 qaa systemd[1]: Started plymouth-reboot.service - Show Plymouth Reboot Screen.
May 25 22:52:04 qaa systemd[1]: plymouth-switch-root-initramfs.service - Tell Plymouth To Jump To initramfs was skipped because no trigger condition checks were met.
May 25 22:53:32 qaa systemd[2230]: xdg-document-portal.service: State 'stop-sigterm' timed out. Killing.
May 25 22:53:32 qaa systemd[2230]: xdg-document-portal.service: Killing process 116031 (xdg-document-po) with signal SIGKILL.
May 25 22:53:32 qaa systemd[2230]: xdg-document-portal.service: Killing process 116037 (fusermount3) with signal SIGKILL.
May 25 22:53:32 qaa systemd[2230]: xdg-document-portal.service: Main process exited, code=killed, status=9/KILL
May 25 22:53:32 qaa systemd[2230]: xdg-document-portal.service: Failed with result 'timeout'.
May 25 22:53:32 qaa systemd[2230]: Stopped xdg-document-portal.service - flatpak document portal service.
(这是来自Debian bug 1071919)。
90年代太长了,我想减少这种延迟。如何?
注意:我已经有一个/etc/systemd/system.conf.d/stop-timeout.conf
文件
[Manager]
# Note[VL]: The default 90s timeout for stopping of units is much too long!
# In general, the timeout is reached, as some unit is frozen or does not
# react. So, let us decrease it to a value that would be less annoying.
DefaultTimeoutStopSec=20s
我认为这已经足够了(目录下没有其他超时设置/etc/systemd
)。但如您所见,事实并非如此。