perf: optimize systemd services startup and cleanup dependencies#201
Open
yixinshark wants to merge 1 commit intolinuxdeepin:masterfrom
Open
perf: optimize systemd services startup and cleanup dependencies#201yixinshark wants to merge 1 commit intolinuxdeepin:masterfrom
yixinshark wants to merge 1 commit intolinuxdeepin:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: yixinshark 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 |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR adjusts several systemd user services for DDE to improve startup ordering, cleanup obsolete dependencies, and streamline pre-start logic for better session startup performance. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- When switching dde-shell and dde-shell-plugin to Type=dbus, double-check that the configured BusName exactly matches the name actually acquired by the processes, otherwise systemd may mis-handle startup and failure detection.
- Since you removed the old application manager dependencies from dde-shell, consider whether any ordering or Requires/Wants relationships need to be retained in a different form to avoid regressions in environments that still expect that startup sequencing.
- For the new ConditionEnvironment usage in dde-session@x11.service, verify that the condition correctly discriminates between X11 and other session types (e.g. Wayland) and that it behaves as expected in edge cases like nested or remote sessions.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- When switching dde-shell and dde-shell-plugin to Type=dbus, double-check that the configured BusName exactly matches the name actually acquired by the processes, otherwise systemd may mis-handle startup and failure detection.
- Since you removed the old application manager dependencies from dde-shell, consider whether any ordering or Requires/Wants relationships need to be retained in a different form to avoid regressions in environments that still expect that startup sequencing.
- For the new ConditionEnvironment usage in dde-session@x11.service, verify that the condition correctly discriminates between X11 and other session types (e.g. Wayland) and that it behaves as expected in edge cases like nested or remote sessions.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
- Change dde-shell and dde-shell-plugin services to Type=dbus and specify BusName to ensure correct startup order. - Remove obsolete application manager dependencies and comments in dde-shell service. - Use ConditionEnvironment in dde-session@x11 service and consolidate ExecStartPre for better performance. - 将 dde-shell 和 dde-shell-plugin 服务类型改为 Type=dbus 并指定 BusName,确保正确的启动顺序。 - 移除 dde-shell 服务中过时的应用管理器依赖及注释。 - 在 dde-session@x11 服务中改用 ConditionEnvironment 并合并 ExecStartPre 以提升性能。 Log: optimize systemd services startup and cleanup dependencies Pms: TASK-384099 Change-Id: I75754a0dd09172d891237955456d881a86cee34b
37066b2 to
757b2d5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change dde-shell and dde-shell-plugin services to Type=dbus and specify BusName to ensure correct startup order.
Remove obsolete application manager dependencies and comments in dde-shell service.
Use ConditionEnvironment in dde-session@x11 service and consolidate ExecStartPre for better performance.
将 dde-shell 和 dde-shell-plugin 服务类型改为 Type=dbus 并指定 BusName,确保正确的启动顺序。
移除 dde-shell 服务中过时的应用管理器依赖及注释。
在 dde-session@x11 服务中改用 ConditionEnvironment 并合并 ExecStartPre 以提升性能。
Log: optimize systemd services startup and cleanup dependencies
Change-Id: I75754a0dd09172d891237955456d881a86cee34b
Summary by Sourcery
Optimize systemd service startup ordering and cleanup obsolete dependencies for dde-shell, dde-shell-plugin, and dde-session@x11.
Enhancements:
Chores: