richardphibel / rpms / systemd

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