teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0595-rc-local-order-after-network-online.target.patch

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