Make sure the network is actually up at the moment of the service startup:
https://systemd.io/NETWORK_ONLINE/
This commit is contained in:
parent
910ddf71b4
commit
07eef3108f
@ -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}
|
||||
|
15
network.patch
Normal file
15
network.patch
Normal 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
|
Loading…
Reference in New Issue
Block a user