1SYSTEMD-RC-LOCAL-GENERATOR(s8y)stemd-rc-local-generatSoYrSTEMD-RC-LOCAL-GENERATOR(8)
2
3
4
6 systemd-rc-local-generator, rc-local.service - Compatibility generator
7 and service to start /etc/rc.d/rc.local during boot
8
10 /usr/lib/systemd/system-generators/systemd-rc-local-generator
11
12 rc-local.service
13
15 systemd-rc-local-generator is a generator that checks whether
16 /etc/rc.d/rc.local exists and is executable, and if it is, pulls the
17 rc-local.service unit into the boot process. This unit is responsible
18 for running this script during late boot. The script is run after
19 network.target, but in parallel with most other regular system
20 services.
21
22 Note that rc-local.service runs with slightly different semantics than
23 the original System V version, which was executed "last" in the boot
24 process, which is a concept that does not translate to systemd.
25
26 Also note that rc-local.service is ordered after network.target, which
27 does not mean that the network is functional, see systemd.special(7).
28 If the script requires a configured network connection, it may be
29 desirable to pull in and order it after network-online.target with a
30 drop-in:
31
32 # /etc/systemd/system/rc-local.service.d/network.conf
33 [Unit]
34 Wants=network-online.target
35 After=network-online.target
36
37 Support for /etc/rc.d/rc.local is provided for compatibility with
38 specific System V systems only. However, it is strongly recommended to
39 avoid making use of this script today, and instead provide proper unit
40 files with appropriate dependencies for any scripts to run during the
41 boot process. Note that the path to the script is set at compile time
42 and varies between distributions.
43
44 systemd-rc-local-generator implements systemd.generator(7).
45
47 systemd(1), systemctl(1)
48
49
50
51systemd 253 SYSTEMD-RC-LOCAL-GENERATOR(8)