Skip to content

Commit

Permalink
man: add note about selinux to rc-local
Browse files Browse the repository at this point in the history
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
  • Loading branch information
keszybz authored and bluca committed May 17, 2024
1 parent de12b8d commit 759e8fe
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions man/systemd-rc-local-generator.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,23 @@ 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>

<para><filename>systemd-rc-local-generator</filename> implements
<citerefentry><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
</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">
Expand Down

0 comments on commit 759e8fe

Please sign in to comment.