From 05b46291669cbe8797279c9580098057c5c734a4 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 26 May 2023 14:10:44 +0200 Subject: [PATCH] systemd: depend on networking-online.target Related: SYS#6400 Change-Id: I9c0cc0779f9ddb7520a565668b7cde07c6ad55d8 --- contrib/systemd/lc15bts-mgr.service | 2 ++ contrib/systemd/oc2gbts-mgr.service | 2 ++ contrib/systemd/osmo-bts-lc15.service | 2 ++ contrib/systemd/osmo-bts-oc2g.service | 2 ++ contrib/systemd/osmo-bts-sysmo.service | 2 ++ contrib/systemd/osmo-bts-trx.service | 2 ++ contrib/systemd/osmo-bts-virtual.service | 2 ++ contrib/systemd/sysmobts-mgr.service | 2 ++ 8 files changed, 16 insertions(+) diff --git a/contrib/systemd/lc15bts-mgr.service b/contrib/systemd/lc15bts-mgr.service index fbdb774cf..350a1a246 100644 --- a/contrib/systemd/lc15bts-mgr.service +++ b/contrib/systemd/lc15bts-mgr.service @@ -2,6 +2,8 @@ Description=osmo-bts manager for LC15 / sysmoBTS 2100 After=lc15-sysdev-remap.service Wants=lc15-sysdev-remap.service +After=network-online.target +Wants=network-online.target [Service] Type=simple diff --git a/contrib/systemd/oc2gbts-mgr.service b/contrib/systemd/oc2gbts-mgr.service index 78fbccef8..883e0ba02 100644 --- a/contrib/systemd/oc2gbts-mgr.service +++ b/contrib/systemd/oc2gbts-mgr.service @@ -2,6 +2,8 @@ Description=osmo-bts manager for OC-2G After=oc2g-sysdev-remap.service Wants=oc2g-sysdev-remap.service +After=network-online.target +Wants=network-online.target [Service] Type=simple diff --git a/contrib/systemd/osmo-bts-lc15.service b/contrib/systemd/osmo-bts-lc15.service index 7cb59198e..fd0760a90 100644 --- a/contrib/systemd/osmo-bts-lc15.service +++ b/contrib/systemd/osmo-bts-lc15.service @@ -1,5 +1,7 @@ [Unit] Description=osmo-bts for LC15 / sysmoBTS 2100 +After=network-online.target +Wants=network-online.target [Service] Type=simple diff --git a/contrib/systemd/osmo-bts-oc2g.service b/contrib/systemd/osmo-bts-oc2g.service index 46984ebc6..dabb00298 100644 --- a/contrib/systemd/osmo-bts-oc2g.service +++ b/contrib/systemd/osmo-bts-oc2g.service @@ -1,5 +1,7 @@ [Unit] Description=osmo-bts for OC-2G +After=network-online.target +Wants=network-online.target [Service] Type=simple diff --git a/contrib/systemd/osmo-bts-sysmo.service b/contrib/systemd/osmo-bts-sysmo.service index 70ac8c6ca..09880a813 100644 --- a/contrib/systemd/osmo-bts-sysmo.service +++ b/contrib/systemd/osmo-bts-sysmo.service @@ -1,5 +1,7 @@ [Unit] Description=osmo-bts for sysmocom sysmoBTS +After=network-online.target +Wants=network-online.target [Service] Type=simple diff --git a/contrib/systemd/osmo-bts-trx.service b/contrib/systemd/osmo-bts-trx.service index 89dec56ea..9763dff80 100644 --- a/contrib/systemd/osmo-bts-trx.service +++ b/contrib/systemd/osmo-bts-trx.service @@ -1,5 +1,7 @@ [Unit] Description=Osmocom osmo-bts for osmo-trx +After=network-online.target +Wants=network-online.target [Service] Type=simple diff --git a/contrib/systemd/osmo-bts-virtual.service b/contrib/systemd/osmo-bts-virtual.service index 2befc188f..dee3ab7ff 100644 --- a/contrib/systemd/osmo-bts-virtual.service +++ b/contrib/systemd/osmo-bts-virtual.service @@ -1,5 +1,7 @@ [Unit] Description=Osmocom GSM BTS for virtual Um layer based on GSMTAP/UDP +After=network-online.target +Wants=network-online.target [Service] Type=simple diff --git a/contrib/systemd/sysmobts-mgr.service b/contrib/systemd/sysmobts-mgr.service index c9cbabac4..ef2751c74 100644 --- a/contrib/systemd/sysmobts-mgr.service +++ b/contrib/systemd/sysmobts-mgr.service @@ -1,5 +1,7 @@ [Unit] Description=osmo-bts manager for sysmoBTS +After=network-online.target +Wants=network-online.target [Service] Type=simple