From 759e8fe7f6cd3f39cb149b8bf12bb0205b8139d2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 17 May 2024 14:31:16 +0200 Subject: [PATCH] man: add note about selinux to rc-local This feature is deprecated, but if users use it, they are likely to be tripped up by the wrong selinux context, so add a note. https://discussion.fedoraproject.org/t/systemd-rc-local-service-doesnt-work-on-fedora-40-until-selinux-contexts-are-set-on-rc-local-script --- man/systemd-rc-local-generator.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/man/systemd-rc-local-generator.xml b/man/systemd-rc-local-generator.xml index f7f69998b1b..cc6068a91e1 100644 --- a/man/systemd-rc-local-generator.xml +++ b/man/systemd-rc-local-generator.xml @@ -53,8 +53,8 @@ Wants=network-online.target After=network-online.target - Support for &RC_LOCAL_PATH; is provided for compatibility with specific System - V systems only. However, it is strongly recommended to avoid making use of this script today, and instead + Support for &RC_LOCAL_PATH; is provided for compatibility with specific + System V systems only. However, it is strongly recommended to avoid using this script today, and instead provide proper unit files with appropriate dependencies for any scripts to run during the boot process. Note that the path to the script is set at compile time and varies between distributions. @@ -62,6 +62,14 @@ After=network-online.target systemd.generator7. + + Notes + + On systems with SELinux, when creating the file, make sure to set the appropriate context, e.g. + with "sudo restorecon -v &RC_LOCAL_PATH;". + + + See Also -- 2.47.3