From 07eef3108f4ac4d6fbf68a864769b173c924f9ee Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Sun, 9 Jun 2024 07:52:09 +0200 Subject: [PATCH] Make sure the network is actually up at the moment of the service startup: https://systemd.io/NETWORK_ONLINE/ --- galera.spec | 2 ++ network.patch | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 network.patch diff --git a/galera.spec b/galera.spec index ee9af8c..fd55809 100644 --- a/galera.spec +++ b/galera.spec @@ -17,6 +17,7 @@ Source0: http://releases.galeracluster.com/source/%{name}-%{version}.tar. Patch0: cmake_paths.patch Patch1: docs.patch +Patch2: network.patch BuildRequires: boost-devel check-devel openssl-devel cmake systemd gcc-c++ asio-devel Requires(pre): /usr/sbin/useradd @@ -37,6 +38,7 @@ description of Galera replication engine see https://www.galeracluster.com web. %setup -q %patch -P0 -p1 %patch -P1 -p1 +%patch -P2 -p1 %build %{set_build_flags} diff --git a/network.patch b/network.patch new file mode 100644 index 0000000..2a5ae8d --- /dev/null +++ b/network.patch @@ -0,0 +1,15 @@ +Make sure the network is actually up at the moment of the service startup: +https://systemd.io/NETWORK_ONLINE/ + +--- galera-26.4.18/garb/files/garb.service 2024-04-17 19:39:35.000000000 +0200 ++++ galera-26.4.18/garb/files/garb.service_patched 2024-06-09 07:47:19.245480639 +0200 +@@ -4,7 +4,8 @@ + Description=Galera Arbitrator Daemon + Documentation=man:garbd(8) + Documentation=https://galeracluster.com/library/documentation/arbitrator.html +-After=network.target ++After=network-online.target ++Wants=network-online.target + + [Install] + WantedBy=multi-user.target