From: Lennart Poettering Date: Sun, 24 Dec 2017 15:50:19 +0000 (+0100) Subject: man: add a systemd-rc-local-generator(8) man page X-Git-Tag: v237~174^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=245992a0c0f44283e003b4be9575b64ed891f4ef;p=platform%2Fupstream%2Fsystemd.git man: add a systemd-rc-local-generator(8) man page Most importantly, let's highlight the differences to the rc-local behaviour in SysV. Fixes: #7703 --- diff --git a/man/rules/meson.build b/man/rules/meson.build index 499fe6d..54c5a9d 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -594,6 +594,7 @@ manpages = [ '8', ['systemd-random-seed'], 'ENABLE_RANDOMSEED'], + ['systemd-rc-local-generator', '8', [], ''], ['systemd-remount-fs.service', '8', ['systemd-remount-fs'], ''], ['systemd-resolve', '1', [], 'ENABLE_RESOLVE'], ['systemd-resolved.service', '8', ['systemd-resolved'], 'ENABLE_RESOLVE'], diff --git a/man/systemd-rc-local-generator.xml b/man/systemd-rc-local-generator.xml new file mode 100644 index 0000000..89cd7ec --- /dev/null +++ b/man/systemd-rc-local-generator.xml @@ -0,0 +1,86 @@ + + + + + + + + systemd-rc-local-generator + systemd + + + + Developer + Lennart + Poettering + lennart@poettering.net + + + + + + systemd-rc-local-generator + 8 + + + + systemd-rc-local-generator + Compatibility generator for starting /etc/rc.local and /usr/sbin/halt.local during boot and shutdown + + + + /usr/lib/systemd/system-generators/systemd-rc-local-generator + + + + Description + + systemd-rc-local-generator is a generator that checks whether + /etc/rc.local exists and is executable, and if it is pulls the + rc-local.service unit into the boot process. This unit is responsible for running this script + during late boot. Note that the script will be run with slightly different semantics than the original System V + version, which was run "last" in the boot process, which is a concept that does not translate to systemd. The + script is run after network.target, but in parallel with most other regular system + services. + + systemd-rc-local-generator also checks whether /usr/sbin/halt.local + exists and is executable, and if it is pulls the halt-local.service unit into the shutdown + process. This unit is responsible for running this script during later shutdown. + + Support for both /etc/rc.local and /usr/sbin/halt.local is provided + for compatibility with specific System V systems only. However, it is strongly recommended to avoid making use of + these scripts today, and instead provide proper unit files with appropriate dependencies for any scripts to run + during the boot or shutdown processes. + + systemd-rc-local-generator implements + systemd.generator7. + + + + See Also + + systemd1, + systemctl1 + + + + diff --git a/man/systemd.generator.xml b/man/systemd.generator.xml index 55bb2b4..5e25bb7 100644 --- a/man/systemd.generator.xml +++ b/man/systemd.generator.xml @@ -336,6 +336,7 @@ find $dir systemd-getty-generator8, systemd-gpt-auto-generator8, systemd-hibernate-resume-generator8, + systemd-rc-local-generator8, systemd-system-update-generator8, systemd-sysv-generator8, systemd.unit5, diff --git a/units/rc-local.service.in b/units/rc-local.service.in index 5dbd62a..78ce69e 100644 --- a/units/rc-local.service.in +++ b/units/rc-local.service.in @@ -11,6 +11,7 @@ # systemd-rc-local-generator if @RC_LOCAL_SCRIPT_PATH_START@ is executable. [Unit] Description=@RC_LOCAL_SCRIPT_PATH_START@ Compatibility +Documentation=man:systemd-rc-local-generator(8) ConditionFileIsExecutable=@RC_LOCAL_SCRIPT_PATH_START@ After=network.target