Skip to content

fix: change dde-lock service type from simple to forking#213

Open
xionglinlin wants to merge 1 commit into
linuxdeepin:masterfrom
xionglinlin:feat/security-loader
Open

fix: change dde-lock service type from simple to forking#213
xionglinlin wants to merge 1 commit into
linuxdeepin:masterfrom
xionglinlin:feat/security-loader

Conversation

@xionglinlin

Copy link
Copy Markdown
Contributor

Change the systemd service type for dde-lock from "simple" to "forking" to ensure
proper startup when using the deepin-security-loader mechanism. The simple type
caused startup failures, while forking allows the daemon process to properly
signal readiness to systemd. Added GuessMainPID=yes to help systemd identify
the main process when the daemon forks.

Log: Fixed dde-lock startup issue by changing service type to forking

Influence:

  1. Verify dde-lock starts successfully on system boot
  2. Test dde-lock functionality after system resume from sleep
  3. Verify dde-lock works correctly on both X11 and Wayland sessions
  4. Test lock screen activation and deactivation
  5. Verify no service timeout or startup failures in systemd journal
  6. Test with other lock screen related operations (switch user, etc.)

fix: 将 dde-lock 服务类型从 simple 改为 forking

将 dde-lock 的 systemd 服务类型从 "simple" 改为 "forking",以确保在使用 deepin-security-loader 机制时能够正常启动。原先的 simple 类型会导致启动 失败,
而 forking 类型允许守护进程正确地向 systemd 发送就绪信号。添加了
GuessMainPID=yes 以帮助 systemd 在守护进程 fork 时识别主进程。

Log: 修复 dde-lock 启动问题,将服务类型改为 forking

Influence:

  1. 验证 dde-lock 在系统启动时能正常启动
  2. 测试系统从休眠恢复后 dde-lock 的功能
  3. 验证 dde-lock 在 X11 和 Wayland 会话下都能正常工作
  4. 测试锁屏的激活和解锁操作
  5. 验证 systemd 日志中没有服务超时或启动失败记录
  6. 测试与其他锁屏相关操作的兼容性(切换用户等)

PMS: TASK-390841
Change-Id: I8f8ad77a4b39d5d7eaa02fe1271d72d6aab4597d

Change the systemd service type for dde-lock from "simple" to "forking"
to ensure
proper startup when using the deepin-security-loader mechanism. The
simple type
caused startup failures, while forking allows the daemon process to
properly
signal readiness to systemd. Added GuessMainPID=yes to help systemd
identify
the main process when the daemon forks.

Log: Fixed dde-lock startup issue by changing service type to forking

Influence:
1. Verify dde-lock starts successfully on system boot
2. Test dde-lock functionality after system resume from sleep
3. Verify dde-lock works correctly on both X11 and Wayland sessions
4. Test lock screen activation and deactivation
5. Verify no service timeout or startup failures in systemd journal
6. Test with other lock screen related operations (switch user, etc.)

fix: 将 dde-lock 服务类型从 simple 改为 forking

将 dde-lock 的 systemd 服务类型从 "simple" 改为 "forking",以确保在使用
deepin-security-loader 机制时能够正常启动。原先的 simple 类型会导致启动
失败,
而 forking 类型允许守护进程正确地向 systemd 发送就绪信号。添加了
GuessMainPID=yes 以帮助 systemd 在守护进程 fork 时识别主进程。

Log: 修复 dde-lock 启动问题,将服务类型改为 forking

Influence:
1. 验证 dde-lock 在系统启动时能正常启动
2. 测试系统从休眠恢复后 dde-lock 的功能
3. 验证 dde-lock 在 X11 和 Wayland 会话下都能正常工作
4. 测试锁屏的激活和解锁操作
5. 验证 systemd 日志中没有服务超时或启动失败记录
6. 测试与其他锁屏相关操作的兼容性(切换用户等)

PMS: TASK-390841
Change-Id: I8f8ad77a4b39d5d7eaa02fe1271d72d6aab4597d

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @xionglinlin, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: xionglinlin

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants