Skip to content

Commit 4ee5251

Browse files
committed
fix: add timeout for dde-shell services to prevent startup failure
Change the TimeoutStartSec from infinity to 10 seconds for both dde- shell-plugin and dde-shell services. This prevents the deepin-service- manager from getting stuck waiting indefinitely when these services fail to start, allowing the system to properly handle startup failures and improve overall system stability. Log: Added startup timeout for dde-shell services Influence: 1. Test normal startup of DDE desktop services 2. Verify services start within 10 seconds under normal conditions 3. Test startup delay scenarios to ensure timeout works correctly 4. Monitor deepin-service-manager startup behavior after timeout trigger 5. Verify system logs show proper timeout events 6. Test service restart behavior after timeout fix: 为 dde-shell 服务添加超时机制以防止启动失败 将 dde-shell-plugin 和 dde-shell 服务的 TimeoutStartSec 从无限改为 10 秒。这可以防止 deepin-service-manager 在这些服务启动失败时无限期阻塞,使 系统能够正确处理启动失败,提升整体系统稳定性。 Log: 为 dde-shell 服务添加启动超时 Influence: 1. 测试 DDE 桌面服务的正常启动 2. 验证服务在正常条件下能在 10 秒内启动完成 3. 测试启动延迟场景以确保超时机制正确工作 4. 监控超时触发后 deepin-service-manager 的启动行为 5. 验证系统日志显示正确的超时事件 6. 测试超时后的服务重启行为
1 parent f9ac9cc commit 4ee5251

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

systemd/dde-session-core.target.wants/dde-shell-plugin@org.deepin.ds.desktop.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ After=dbus.socket
1818
Type=dbus
1919
BusName=com.deepin.dde.desktop
2020
ExecStart=/usr/bin/dde-shell -p %I
21-
TimeoutStartSec=infinity
21+
TimeoutStartSec=10s
2222
Slice=session.slice
2323
Restart=always
2424
RestartSec=1s

systemd/dde-session-core.target.wants/dde-shell@DDE.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Wants=org.desktopspec.ApplicationManager1.service
2121
Type=dbus
2222
BusName=org.deepin.dde.Dock1
2323
ExecStart=/usr/bin/dde-shell -C %I --serviceName=org.deepin.dde.shell -d org.deepin.ds.desktop
24-
TimeoutStartSec=infinity
24+
TimeoutStartSec=10s
2525
Slice=session.slice
2626
Restart=always
2727
RestartSec=1s

0 commit comments

Comments
 (0)