naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
2aacef
From 6eb6434d8d203e19f5fb58d3d0ec561088b691e9 Mon Sep 17 00:00:00 2001
aa0848
From: David Tardon <dtardon@redhat.com>
aa0848
Date: Thu, 11 Mar 2021 15:48:23 +0100
aa0848
Subject: [PATCH] rc-local: order after network-online.target
aa0848
aa0848
I think this was the intent of commit 91b684c7300879a8d2006038f7d9185d92c3c3bf,
aa0848
just network-online.target didn't exist back then.
aa0848
aa0848
RHEL-only
aa0848
2aacef
Related: #2138081
aa0848
---
aa0848
 units/rc-local.service.in | 3 ++-
aa0848
 1 file changed, 2 insertions(+), 1 deletion(-)
aa0848
aa0848
diff --git a/units/rc-local.service.in b/units/rc-local.service.in
aa0848
index 55e83dfe00..0eee722154 100644
aa0848
--- a/units/rc-local.service.in
aa0848
+++ b/units/rc-local.service.in
aa0848
@@ -13,7 +13,8 @@
aa0848
 Description={{RC_LOCAL_PATH}} Compatibility
aa0848
 Documentation=man:systemd-rc-local-generator(8)
aa0848
 ConditionFileIsExecutable={{RC_LOCAL_PATH}}
aa0848
-After=network.target
aa0848
+After=network-online.target
aa0848
+Wants=network-online.target
aa0848
 
aa0848
 [Service]
aa0848
 Type=forking