richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
aa0848
From 6dc2d5628fded20609561ca3c63517b3dc381042 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
aa0848
Resolves: #1954429
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