summaryrefslogtreecommitdiff
path: root/src/connman-wait-online.service.in
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2015-12-07 10:51:34 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2015-12-08 15:39:04 +0200
commit6bf40300e692e184b3cea034d4f6f6b6ea13c4e3 (patch)
treecec6a4ebb5c9576bf534e70e81f704e8828b6e59 /src/connman-wait-online.service.in
parent2d4181da31e65d5aa0de1d90b22f36ec10dc8f8c (diff)
downloadconnman-6bf40300e692e184b3cea034d4f6f6b6ea13c4e3.tar.gz
build: Add connman-wait-online.service
Add systemd unit connmand-wait-online.service that can be enabled so that the system waits until a network connection is established before reaching network-online.target. The service follows systemd-networkd-wait-online behavior and matches systemd network "online" status with ConnMan service state 'ready' or 'online'. Fixes CM-683
Diffstat (limited to 'src/connman-wait-online.service.in')
-rw-r--r--src/connman-wait-online.service.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/connman-wait-online.service.in b/src/connman-wait-online.service.in
new file mode 100644
index 00000000..c2ad5cc9
--- /dev/null
+++ b/src/connman-wait-online.service.in
@@ -0,0 +1,15 @@
+[Unit]
+Description=Wait for network to be configured by ConnMan
+Requisite=connman.service
+After=connman.service
+Before=network-online.target
+DefaultDependencies=no
+Conflicts=shutdown.target
+
+[Service]
+Type=oneshot
+ExecStart=@sbindir@/connmand-wait-online
+RemainAfterExit=yes
+
+[Install]
+WantedBy=network-online.target