From 37c9f2e3ca1351645363efe34686fad3e3dbf342 Mon Sep 17 00:00:00 2001 From: yeshanshan Date: Mon, 2 Mar 2026 15:06:15 +0800 Subject: [PATCH] fix: change clipboard service restart policy to always MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed the systemd service restart policy for dde-clipboard from "on- failure" to "always" to ensure the clipboard service automatically restarts even after being manually killed. Previously, when users killed the clipboard process via killall command, the service would not restart because it wasn't considered a failure condition by systemd. Log: Fixed clipboard service not restarting after being manually killed Influence: 1. Test killing the dde-clipboard process manually and verify it restarts automatically 2. Verify clipboard functionality continues working after service restart 3. Test system startup to ensure clipboard service starts properly 4. Monitor system resources to ensure continuous restart doesn't cause issues fix: 修改剪贴板服务重启策略为始终重启 将 dde-clipboard 的 systemd 服务重启策略从 "on-failure" 改为 "always", 确保剪贴板服务在被手动终止后也能自动重启。之前当用户通过 killall 命令杀 死剪贴板进程时,由于 systemd 不认为这是故障条件,服务不会重新启动。 Log: 修复手动杀死剪贴板服务后无法自动重启的问题 Influence: 1. 测试手动杀死 dde-clipboard 进程并验证其自动重启 2. 验证剪贴板功能在服务重启后继续正常工作 3. 测试系统启动时剪贴板服务是否正确启动 4. 监控系统资源,确保持续重启不会导致问题 PMS: BUG-351483 --- misc/dde-clipboard.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/dde-clipboard.service.in b/misc/dde-clipboard.service.in index 7c17abba..11ec62ae 100644 --- a/misc/dde-clipboard.service.in +++ b/misc/dde-clipboard.service.in @@ -13,5 +13,5 @@ Type=dbus BusName=org.deepin.dde.Clipboard1 ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/dde-clipboard Slice=session.slice -Restart=on-failure +Restart=always RestartSec=3s