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