From 6e46d2f96ca151fbe489b7a1d963ff9f9c998b42 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Thu, 10 Oct 2019 22:08:26 +0300 Subject: lightmediascanner.service: Fix for the first boot Fix lightmediascanner systemd service to avoiding a race condition with /var/volatile/tmp on the first boot by running it after run-agl-postinsts.service. Furhtermore, for extra safety, a restart on failure has been added. Bug-AGL: SPEC-2869 Change-Id: Ib0cadfaa3b4da2a15ac3cfc04cf6d8174e63eb63 Signed-off-by: Leon Anavi (cherry picked from commit 15c979005a29404bfc11da6055f29ee77254b876) --- .../lightmediascanner/files/lightmediascanner.service | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta-agl-profile-core/recipes-multimedia') diff --git a/meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service b/meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service index abd7be7e4..63b48ebf9 100644 --- a/meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service +++ b/meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service @@ -1,8 +1,12 @@ [Unit] Description=Lightmediascanner (LMS) +After=run-agl-postinsts.service systemd-remount-fs.service systemd-tmpfiles-setup.service tmp.mount +ConditionPathIsReadWrite=/var/volatile/tmp [Service] Type=dbus +Restart=on-failure +RestartSec=0 BusName=org.lightmediascanner SmackProcessLabel=User::App::agl-service-mediascanner ExecStart=/usr/bin/lightmediascannerd --startup-scan --db-path=/var/volatile/tmp/lightmediascannerd.db --directory=/media -- cgit 1.2.3-korg