Skip to content

Commit fef8fea

Browse files
committed
fix: remove Install sections from systemd sound services
1. Removed [Install] sections from both deepin-login-sound.service and deepin-shutdown-sound.service 2. These services are meant to be triggered manually rather than being enabled/started at boot 3. The WantedBy directives were unnecessary since these are one-shot services 4. Improves system startup performance by not loading unnecessary services fix: 从 systemd 声音服务中移除 Install 部分 1. 从 deepin-login-sound.service 和 deepin-shutdown-sound.service 中移除 了 [Install] 部分 2. 这些服务设计为手动触发而非在启动时自动启用/运行 3. WantedBy 指令对于一次性服务来说是不必要的 4. 通过不加载不必要的服务来提高系统启动性能
1 parent 61de5a5 commit fef8fea

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

misc/systemd/system/deepin-login-sound.service

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,3 @@ LockPersonality=yes
2828
RestrictRealtime=yes
2929
RestrictSUIDSGID=yes
3030
RemoveIPC=yes
31-
32-
[Install]
33-
WantedBy=multi-user.target

misc/systemd/system/deepin-shutdown-sound.service

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,3 @@ LockPersonality=yes
3636
RestrictRealtime=yes
3737
RestrictSUIDSGID=yes
3838
RemoveIPC=yes
39-
40-
[Install]
41-
WantedBy=graphical.target

0 commit comments

Comments
 (0)