summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-05-17 14:31:16 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-05-17 15:16:07 +0200
commit759e8fe7f6cd3f39cb149b8bf12bb0205b8139d2 (patch)
tree8dc887dc264e76abb332067b94b3178df29595ca /man
parentcore/execute: do not use format str for log_object_internal (diff)
downloadsystemd-759e8fe7f6cd3f39cb149b8bf12bb0205b8139d2.tar.xz
systemd-759e8fe7f6cd3f39cb149b8bf12bb0205b8139d2.zip
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
Diffstat (limited to 'man')
-rw-r--r--man/systemd-rc-local-generator.xml12
1 files changed, 10 insertions, 2 deletions
diff --git a/man/systemd-rc-local-generator.xml b/man/systemd-rc-local-generator.xml
index f7f69998b1..cc6068a91e 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
</programlisting>
- <para>Support for <filename>&RC_LOCAL_PATH;</filename> 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
+ <para>Support for <filename>&RC_LOCAL_PATH;</filename> 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.</para>
@@ -63,6 +63,14 @@ After=network-online.target
</refsect1>
<refsect1>
+ <title>Notes</title>
+
+ <para>On systems with SELinux, when creating the file, make sure to set the appropriate context, e.g.
+ with "<command>sudo restorecon -v &RC_LOCAL_PATH;</command>".
+ </para>
+ </refsect1>
+
+ <refsect1>
<title>See Also</title>
<para><simplelist type="inline">
<member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>