aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2019-10-10 22:08:26 +0300
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-10-11 12:01:32 +0000
commit15c979005a29404bfc11da6055f29ee77254b876 (patch)
tree5b9476302e4fc291565e1a07802a19e20b0fde04
parent497dfc0f663051154f01b12c2099ae313c2cc4bc (diff)
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 <leon.anavi@konsulko.com>
-rw-r--r--meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service4
1 files changed, 4 insertions, 0 deletions
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