aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2023-05-26 14:10:48 +0200
committerOliver Smith <osmith@sysmocom.de>2023-05-26 14:10:48 +0200
commiteda1b83f75ce1baab36c37cfda74ca65b57071a7 (patch)
treedc0fa468b864589dd8f16ed77f779db1ba063d24
parentb83aabaa95695c61a64e5e990944f8e55934a976 (diff)
systemd: depend on networking-online.target
-rw-r--r--contrib/systemd/osmo-gtphub.service2
-rw-r--r--contrib/systemd/osmo-sgsn.service2
2 files changed, 4 insertions, 0 deletions
diff --git a/contrib/systemd/osmo-gtphub.service b/contrib/systemd/osmo-gtphub.service
index 1e8f1ae8c..9ade246d4 100644
--- a/contrib/systemd/osmo-gtphub.service
+++ b/contrib/systemd/osmo-gtphub.service
@@ -1,5 +1,7 @@
[Unit]
Description=Osmocom GTP Hub
+After=network-online.target
+Wants=network-online.target
[Service]
Type=simple
diff --git a/contrib/systemd/osmo-sgsn.service b/contrib/systemd/osmo-sgsn.service
index 30b3cda76..21ecbb752 100644
--- a/contrib/systemd/osmo-sgsn.service
+++ b/contrib/systemd/osmo-sgsn.service
@@ -3,6 +3,8 @@ Description=Osmocom SGSN (Serving GPRS Support Node)
Wants=osmo-hlr.service
After=osmo-hlr.service
After=osmo-hnbgw.service
+After=network-online.target
+Wants=network-online.target
[Service]
Type=simple