Make sure the network is actually up at the moment of the service startup:

https://systemd.io/NETWORK_ONLINE/
This commit is contained in:
Michal Schorm 2024-06-09 07:52:09 +02:00
parent 910ddf71b4
commit 07eef3108f
2 changed files with 17 additions and 0 deletions

View File

@ -17,6 +17,7 @@ Source0: http://releases.galeracluster.com/source/%{name}-%{version}.tar.
Patch0: cmake_paths.patch Patch0: cmake_paths.patch
Patch1: docs.patch Patch1: docs.patch
Patch2: network.patch
BuildRequires: boost-devel check-devel openssl-devel cmake systemd gcc-c++ asio-devel BuildRequires: boost-devel check-devel openssl-devel cmake systemd gcc-c++ asio-devel
Requires(pre): /usr/sbin/useradd Requires(pre): /usr/sbin/useradd
@ -37,6 +38,7 @@ description of Galera replication engine see https://www.galeracluster.com web.
%setup -q %setup -q
%patch -P0 -p1 %patch -P0 -p1
%patch -P1 -p1 %patch -P1 -p1
%patch -P2 -p1
%build %build
%{set_build_flags} %{set_build_flags}

15
network.patch Normal file
View File

@ -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