naccyde / rpms / systemd

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