From ced79330b45f541bf2606a0be895e34a861dc9e6 Mon Sep 17 00:00:00 2001 From: fuleyi Date: Wed, 20 Aug 2025 16:53:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=85=B3=E6=9C=BA=E9=9F=B3=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 因为用 Requisite= 是“硬依赖”。如果系统上没激活 sound.target(很多环境确实不会激活它),这个服务就不会在开机被拉起,结果就是 enabled 但一直 inactive (dead) Log: 去掉Requisite,改成Wants PMS: BUG-315787 Influence: 系统音效 --- misc/systemd/system/deepin-shutdown-sound.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/systemd/system/deepin-shutdown-sound.service b/misc/systemd/system/deepin-shutdown-sound.service index a9ec93d..c4b519b 100644 --- a/misc/systemd/system/deepin-shutdown-sound.service +++ b/misc/systemd/system/deepin-shutdown-sound.service @@ -1,6 +1,7 @@ [Unit] Description=Deepin shutdown sound -Requisite=sound.target local-fs.target +Requisite= +Wants=sound.target local-fs.target After=sound.target local-fs.target Conflicts=shutdown.target Before=shutdown.target