diff --git a/docs/DISTRO_PORTING.md b/docs/DISTRO_PORTING.md
index 620e47e823..d14bf131ba 100644
--- a/docs/DISTRO_PORTING.md
+++ b/docs/DISTRO_PORTING.md
@@ -15,7 +15,6 @@ distribution:
* `-Dsysvinit-path=`
* `-Dsysvrcnd-path=`
* `-Drc-local=`
- * `-Dhalt-local=`
* `-Dloadkeys-path=`
* `-Dsetfont-path=`
* `-Dtty-gid=`
diff --git a/man/systemd-rc-local-generator.xml b/man/systemd-rc-local-generator.xml
index 514d1021d6..81744c2025 100644
--- a/man/systemd-rc-local-generator.xml
+++ b/man/systemd-rc-local-generator.xml
@@ -17,7 +17,7 @@
systemd-rc-local-generator
- Compatibility generator for starting /etc/rc.local and /usr/sbin/halt.local during boot and shutdown
+ Compatibility generator for starting /etc/rc.local during boot
@@ -35,14 +35,10 @@
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
+ Support for /etc/rc.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.
+ this script today, and instead provide proper unit files with appropriate dependencies for any scripts to run
+ during the boot process.
systemd-rc-local-generator implements
systemd.generator7.
diff --git a/meson.build b/meson.build
index cd2fbd5796..30e4743489 100644
--- a/meson.build
+++ b/meson.build
@@ -193,7 +193,6 @@ conf.set_quoted('SYSTEM_DATA_UNIT_PATH', systemunitdir)
conf.set_quoted('SYSTEM_SYSVINIT_PATH', sysvinit_path)
conf.set_quoted('SYSTEM_SYSVRCND_PATH', sysvrcnd_path)
conf.set_quoted('RC_LOCAL_SCRIPT_PATH_START', get_option('rc-local'))
-conf.set_quoted('RC_LOCAL_SCRIPT_PATH_STOP', get_option('halt-local'))
conf.set('ANSI_OK_COLOR', 'ANSI_' + get_option('ok-color').underscorify().to_upper())
@@ -280,7 +279,6 @@ substs.set('RANDOM_SEED', join_paths(randoms
substs.set('SYSTEM_SYSVINIT_PATH', sysvinit_path)
substs.set('SYSTEM_SYSVRCND_PATH', sysvrcnd_path)
substs.set('RC_LOCAL_SCRIPT_PATH_START', get_option('rc-local'))
-substs.set('RC_LOCAL_SCRIPT_PATH_STOP', get_option('halt-local'))
substs.set('MEMORY_ACCOUNTING_DEFAULT', memory_accounting_default ? 'yes' : 'no')
substs.set('HIGH_RLIMIT_NOFILE', conf.get('HIGH_RLIMIT_NOFILE'))
substs.set('BUILD_ROOT', meson.current_build_dir())
@@ -3058,7 +3056,6 @@ status = [
'bash completions directory: @0@'.format(bashcompletiondir),
'zsh completions directory: @0@'.format(zshcompletiondir),
'extra start script: @0@'.format(get_option('rc-local')),
- 'extra stop script: @0@'.format(get_option('halt-local')),
'debug shell: @0@ @ @1@'.format(get_option('debug-shell'),
get_option('debug-tty')),
'TTY GID: @0@'.format(tty_gid),
diff --git a/meson_options.txt b/meson_options.txt
index 5d68970ff6..4a8e73bc59 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -31,8 +31,6 @@ option('telinit-path', type : 'string', value : '/lib/sysvinit/telinit',
description : 'path to telinit')
option('rc-local', type : 'string',
value : '/etc/rc.local')
-option('halt-local', type : 'string',
- value : '/usr/sbin/halt.local')
option('quotaon-path', type : 'string', description : 'path to quotaon')
option('quotacheck-path', type : 'string', description : 'path to quotacheck')
diff --git a/src/rc-local-generator/rc-local-generator.c b/src/rc-local-generator/rc-local-generator.c
index 7a3948e92d..908e6272a8 100644
--- a/src/rc-local-generator/rc-local-generator.c
+++ b/src/rc-local-generator/rc-local-generator.c
@@ -65,12 +65,6 @@ static int run(const char *dest, const char *dest_early, const char *dest_late)
r = add_symlink("rc-local.service", "multi-user.target");
}
- if (check_executable(RC_LOCAL_SCRIPT_PATH_STOP) >= 0) {
- log_debug("Automatically adding halt-local.service.");
-
- k = add_symlink("halt-local.service", "final.target");
- }
-
return r < 0 ? r : k;
}
diff --git a/units/meson.build b/units/meson.build
index a5610506d5..52f8b7712f 100644
--- a/units/meson.build
+++ b/units/meson.build
@@ -118,7 +118,6 @@ units = [
in_units = [
['debug-shell.service', ''],
['emergency.service', ''],
- ['halt-local.service', 'HAVE_SYSV_COMPAT'],
['initrd-cleanup.service', ''],
['initrd-parse-etc.service', ''],
['initrd-switch-root.service', ''],