Prevent spurious restarts 72/311472/2
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 21 May 2024 14:43:32 +0000 (16:43 +0200)
committerMinje ahn <minje.ahn@samsung.com>
Tue, 11 Jun 2024 23:40:21 +0000 (23:40 +0000)
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 by path units need to set
RemainAfterExit=yes.

Change-Id: I2b1aadf3f7ebfa5511fc057b7a657161206bb844
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
packaging/media-server-user.service

index 31056be..ccba18d 100644 (file)
@@ -3,6 +3,7 @@ Description=Media server user
 
 [Service]
 Type=simple
+RemainAfterExit=yes
 CPUAccounting=yes
 CPUQuota=10%
 ExecStart=/usr/bin/sh -c "/usr/bin/mediadb-update check_db;/usr/bin/mediadb-update `/usr/bin/tzplatform-get TZ_USER_CONTENT | /usr/bin/sed -e 's/^.*=//g'`"