fix: change clipboard service restart policy to always#252
Conversation
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
There was a problem hiding this comment.
Sorry @18202781743, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
deepin pr auto review这段代码修改是对 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
总结与改进建议结论: 改进建议:
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, wjyrich The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
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:
restarts automatically
restart
issues
fix: 修改剪贴板服务重启策略为始终重启
将 dde-clipboard 的 systemd 服务重启策略从 "on-failure" 改为 "always",
确保剪贴板服务在被手动终止后也能自动重启。之前当用户通过 killall 命令杀
死剪贴板进程时,由于 systemd 不认为这是故障条件,服务不会重新启动。
Log: 修复手动杀死剪贴板服务后无法自动重启的问题
Influence:
PMS: BUG-351483