您尚未登录。

#1 2024-07-22 08:50:11

Endxcher
会员
注册时间: 2024-01-28
帖子: 7

service 超时导致关机时间过长

关机时 tty 显示 "A stop job is running for User Manager ..."

7月 22 08:12:35 PC wpa_supplicant[855]: wlp3s0: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=-76 noise=9999 txrate=81000
7月 22 08:12:38 PC wpa_supplicant[855]: wlp3s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-65 noise=9999 txrate=81000
7月 22 08:13:14 PC systemd[1143]: xdg-document-portal.service: State 'stop-sigterm' timed out. Killing.
7月 22 08:13:14 PC systemd[1143]: xdg-document-portal.service: Killing process 1404 (xdg-document-po) with signal SIGKILL.
7月 22 08:13:14 PC systemd[1143]: xdg-document-portal.service: Killing process 1413 (fusermount3) with signal SIGKILL.
7月 22 08:13:14 PC systemd[1143]: xdg-document-portal.service: Killing process 1407 (pool-spawner) with signal SIGKILL.
7月 22 08:13:14 PC systemd[1143]: xdg-document-portal.service: Killing process 1408 (gmain) with signal SIGKILL.
7月 22 08:13:14 PC systemd[1143]: xdg-document-portal.service: Killing process 1416 (n/a) with signal SIGKILL.
7月 22 08:13:14 PC systemd[1143]: xdg-document-portal.service: Killing process 1417 (n/a) with signal SIGKILL.
7月 22 08:13:14 PC systemd[1143]: xdg-document-portal.service: Main process exited, code=killed, status=9/KILL
7月 22 08:13:14 PC systemd[1143]: xdg-document-portal.service: Failed with result 'timeout'.
7月 22 08:13:14 PC systemd[1143]: Stopped flatpak document portal service.

我怀疑是 xdg-document-portal.service 的问题

$ systemctl status xdg-document-portal.service
Unit xdg-document-portal.service could not be found.


下面是完整日志。
https://fars.ee/CO1a

最近编辑记录 Endxcher (2024-07-22 08:53:36)

离线

#2 2024-07-22 09:00:00

Endxcher
会员
注册时间: 2024-01-28
帖子: 7

Re: service 超时导致关机时间过长

这个问题不会一直重现,偶尔会发生,似乎没有规律。

最近编辑记录 Endxcher (2024-07-22 09:02:34)

离线

#3 2024-07-25 15:05:59

kenneth7718
会员
注册时间: 2023-10-22
帖子: 12

Re: service 超时导致关机时间过长

我不知道下面的方法有没有用或者只是治标不治本:

编辑/etc/systemd/system.conf,把DefaultTimeoutStartSec和DefaultTimeoutStopSec前面的#去掉后,后面的90s改短一些,比如1s或者3s啥的。

我之前有几次关机需要等90秒,改了后基本很快就关机了,暂时也没出现什么奇怪的问题。


又菜又爱玩,还爱发脾气

离线

页脚