]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-rc-local-generator.xml
man: document the various new options nspawn learnt
[thirdparty/systemd.git] / man / systemd-rc-local-generator.xml
CommitLineData
245992a0
LP
1<?xml version="1.0"?>
2<!--*-nxml-*-->
3a54a157
ZJS
3<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
4 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
0307f791 5<!-- SPDX-License-Identifier: LGPL-2.1+ -->
245992a0
LP
6<refentry id="systemd-rc-local-generator">
7
8 <refentryinfo>
9 <title>systemd-rc-local-generator</title>
10 <productname>systemd</productname>
245992a0
LP
11 </refentryinfo>
12
13 <refmeta>
14 <refentrytitle>systemd-rc-local-generator</refentrytitle>
15 <manvolnum>8</manvolnum>
16 </refmeta>
17
18 <refnamediv>
19 <refname>systemd-rc-local-generator</refname>
20 <refpurpose>Compatibility generator for starting <filename>/etc/rc.local</filename> and <filename>/usr/sbin/halt.local</filename> during boot and shutdown</refpurpose>
21 </refnamediv>
22
23 <refsynopsisdiv>
24 <para><filename>/usr/lib/systemd/system-generators/systemd-rc-local-generator</filename></para>
25 </refsynopsisdiv>
26
27 <refsect1>
28 <title>Description</title>
29
30 <para><filename>systemd-rc-local-generator</filename> is a generator that checks whether
31 <filename>/etc/rc.local</filename> exists and is executable, and if it is pulls the
32 <filename>rc-local.service</filename> unit into the boot process. This unit is responsible for running this script
33 during late boot. Note that the script will be run with slightly different semantics than the original System V
34 version, which was run "last" in the boot process, which is a concept that does not translate to systemd. The
35 script is run after <filename>network.target</filename>, but in parallel with most other regular system
36 services.</para>
37
38 <para><filename>systemd-rc-local-generator</filename> also checks whether <filename>/usr/sbin/halt.local</filename>
39 exists and is executable, and if it is pulls the <filename>halt-local.service</filename> unit into the shutdown
40 process. This unit is responsible for running this script during later shutdown.</para>
41
42 <para>Support for both <filename>/etc/rc.local</filename> and <filename>/usr/sbin/halt.local</filename> is provided
43 for compatibility with specific System V systems only. However, it is strongly recommended to avoid making use of
44 these scripts today, and instead provide proper unit files with appropriate dependencies for any scripts to run
45 during the boot or shutdown processes.</para>
46
47 <para><filename>systemd-rc-local-generator</filename> implements
48 <citerefentry><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
49 </refsect1>
50
51 <refsect1>
52 <title>See Also</title>
53 <para>
54 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
55 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
56 </para>
57 </refsect1>
58
59</refentry>