summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2017-04-25 22:08:24 +0200
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2017-04-25 22:11:44 +0200
commit8991a4260a752e03302f1932c7a189fd5c8904c1 (patch)
treedbfb85908e07e51eca188bb03b70ac88d293ba37
parent2d7180b79fe8a3a7a7b3f7f6eb5798de1e26dec3 (diff)
debian: fix service dependencies
qmi-gps-proxy is supposed to be a dependency of gnss-gpsd, but it was missing the Wants directive, and instead we had an extra udev rules.. Not sure why/how we ended up with such a config, but the right thing to do is to have 1 udev rule that triggers gnss-gpsd service, and make sure the dependency between gnss-gpsd and qmi-gps-proxy is configured properly with Wants directive. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
-rw-r--r--debian/gnss-gpsd.service1
-rw-r--r--debian/qmi-gps-proxy.udev3
2 files changed, 1 insertions, 3 deletions
diff --git a/debian/gnss-gpsd.service b/debian/gnss-gpsd.service
index 2282baf..7dc1912 100644
--- a/debian/gnss-gpsd.service
+++ b/debian/gnss-gpsd.service
@@ -1,6 +1,7 @@
[Unit]
Description=Register QCOM GPS into GPSD
After=systemd-remount-fs.service qmi-gps-proxy.service
+Wants=qmi-gps-proxy.service
[Service]
Type=oneshot
diff --git a/debian/qmi-gps-proxy.udev b/debian/qmi-gps-proxy.udev
deleted file mode 100644
index e38d414..0000000
--- a/debian/qmi-gps-proxy.udev
+++ /dev/null
@@ -1,3 +0,0 @@
-
-SUBSYSTEM=="qcom_smd", ACTION=="add", KERNEL=="qcom,smd-modem.ipcrtr_requests", TAG+="systemd", ENV{SYSTEMD_WANTS}+="qmi-gps-proxy.service"
-