Skip to content

Commit

Permalink
[systemd] Make sensorfwd wait for oneshot-root.service. Fixes JB#41619
Browse files Browse the repository at this point in the history
Android services/actions launched by droid-hal-init, queued oneshot
scripts and sensorfwd are executing in parallel during bootup. During
especially the 1st boot the scheduling of tasks can lead to sensorfwd
getting hold of nonfunctional sensor hal.

Delaying sensorfwd startup until oneshot scripts have been executed
makes it less likely for the problem to surface.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed May 24, 2018
1 parent a6c4664 commit f15887c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpm/sensorfwd.service
@@ -1,6 +1,7 @@
[Unit]
Description=Sensor daemon for sensor framework
After=dbus.socket
After=oneshot-root.service
Requires=dbus.service
Conflicts=actdead.target

Expand Down

0 comments on commit f15887c

Please sign in to comment.