From 186bd389cedfa560bc4ebc00dda44e0cf2e1bf3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Stelmach?= Date: Wed, 19 Jun 2024 16:32:10 +0200 Subject: [PATCH] Prevent spurious restarts MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Due to a fix to path units in systemd in commit 708961c701 ("core/path: recheck path specs when triggered unit changes state"), service units that aren't supposed to run repeatedly and are triggered by path units need to set RemainAfterExit=yes. Change-Id: Ibf47c6e384b45555c5a081e918e37791219cb15c Signed-off-by: Łukasz Stelmach --- service/tbm-drm-auth-user.service | 1 + 1 file changed, 1 insertion(+) diff --git a/service/tbm-drm-auth-user.service b/service/tbm-drm-auth-user.service index 0284bc4..e688932 100644 --- a/service/tbm-drm-auth-user.service +++ b/service/tbm-drm-auth-user.service @@ -5,4 +5,5 @@ Before=starter.service [Service] Type=oneshot +RemainAfterExit=yes ExecStart=/usr/bin/sh -c "while [ ! -e /run/tbm-drm-auth ] ; do /usr/bin/sleep .1 ; done ;/usr/bin/ln -s /run/tbm-drm-auth /run/user/%U/" -- 2.34.1