Skip to content
This repository was archived by the owner on Nov 15, 2025. It is now read-only.

Commit 452d2df

Browse files
committed
meson: RC_LOCAL_SCRIPT_PATH_START to RC_LOCAL_PATH
RC_LOCAL_SCRIPT_PATH_START and RC_LOCAL_SCRIPT_PATH_STOP were was originally added in the conversion to meson based on the autotools name. In 4450894 RC_LOCAL_SCRIPT_PATH_STOP was dropped. We don't need to use such a long name.
1 parent e66d2ee commit 452d2df

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ conf.set_quoted('SYSTEM_CONFIG_UNIT_DIR', join_paths(pkgsysc
212212
conf.set_quoted('SYSTEM_DATA_UNIT_PATH', systemunitdir)
213213
conf.set_quoted('SYSTEM_SYSVINIT_PATH', sysvinit_path)
214214
conf.set_quoted('SYSTEM_SYSVRCND_PATH', sysvrcnd_path)
215-
conf.set_quoted('RC_LOCAL_SCRIPT_PATH_START', get_option('rc-local'))
215+
conf.set_quoted('RC_LOCAL_PATH', get_option('rc-local'))
216216

217217
conf.set('ANSI_OK_COLOR', 'ANSI_' + get_option('ok-color').underscorify().to_upper())
218218

@@ -299,7 +299,7 @@ substs.set('CERTIFICATEROOT', get_option('certif
299299
substs.set('RANDOM_SEED', join_paths(randomseeddir, 'random-seed'))
300300
substs.set('SYSTEM_SYSVINIT_PATH', sysvinit_path)
301301
substs.set('SYSTEM_SYSVRCND_PATH', sysvrcnd_path)
302-
substs.set('RC_LOCAL_SCRIPT_PATH_START', get_option('rc-local'))
302+
substs.set('RC_LOCAL_PATH', get_option('rc-local'))
303303
substs.set('MEMORY_ACCOUNTING_DEFAULT', memory_accounting_default ? 'yes' : 'no')
304304
substs.set('STATUS_UNIT_FORMAT_DEFAULT', status_unit_format_default)
305305
substs.set('HIGH_RLIMIT_NOFILE', conf.get('HIGH_RLIMIT_NOFILE'))

src/rc-local-generator/rc-local-generator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static int run(const char *dest, const char *dest_early, const char *dest_late)
5959

6060
assert_se(arg_dest = dest);
6161

62-
if (check_executable(RC_LOCAL_SCRIPT_PATH_START) >= 0) {
62+
if (check_executable(RC_LOCAL_PATH) >= 0) {
6363
log_debug("Automatically adding rc-local.service.");
6464

6565
r = add_symlink("rc-local.service", "multi-user.target");

units/rc-local.service.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
# (at your option) any later version.
99

1010
# This unit gets pulled automatically into multi-user.target by
11-
# systemd-rc-local-generator if @RC_LOCAL_SCRIPT_PATH_START@ is executable.
11+
# systemd-rc-local-generator if @RC_LOCAL_PATH@ is executable.
1212
[Unit]
13-
Description=@RC_LOCAL_SCRIPT_PATH_START@ Compatibility
13+
Description=@RC_LOCAL_PATH@ Compatibility
1414
Documentation=man:systemd-rc-local-generator(8)
15-
ConditionFileIsExecutable=@RC_LOCAL_SCRIPT_PATH_START@
15+
ConditionFileIsExecutable=@RC_LOCAL_PATH@
1616
After=network.target
1717

1818
[Service]
1919
Type=forking
20-
ExecStart=@RC_LOCAL_SCRIPT_PATH_START@ start
20+
ExecStart=@RC_LOCAL_PATH@ start
2121
TimeoutSec=0
2222
RemainAfterExit=yes
2323
GuessMainPID=no

0 commit comments

Comments
 (0)