mirror of
https://github.com/systemd/systemd.git
synced 2024-11-30 13:53:39 +08:00
build-sys: fix build regarding SYSTEM_SYSVRCND_PATH
This commit is contained in:
parent
c16c534dcb
commit
061978fa4d
@ -24,7 +24,7 @@ AM_CPPFLAGS = \
|
||||
-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
|
||||
-DSYSTEM_DATA_UNIT_PATH=\"$(pkgdatadir)/system\" \
|
||||
-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
|
||||
-DSYSTEM_RCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
|
||||
-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
|
||||
-DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
|
||||
-DSESSION_DATA_UNIT_PATH=\"$(pkgdatadir)/session\" \
|
||||
-DCGROUP_AGENT_PATH=\"$(pkglibexecdir)/systemd-cgroups-agent\"
|
||||
|
@ -45,7 +45,6 @@ static const char * const rcnd_table[] = {
|
||||
"/rc6.d", SPECIAL_RUNLEVEL6_TARGET
|
||||
};
|
||||
|
||||
|
||||
static const UnitActiveState state_translation_table[_SERVICE_STATE_MAX] = {
|
||||
[SERVICE_DEAD] = UNIT_INACTIVE,
|
||||
[SERVICE_START_PRE] = UNIT_ACTIVATING,
|
||||
@ -218,7 +217,7 @@ static int priority_from_rcd(Service *s, const char *init_script) {
|
||||
char **p;
|
||||
unsigned i;
|
||||
|
||||
STRV_FOREACH(p, UNIT(s)->meta.manager->sysrcnd_path)
|
||||
STRV_FOREACH(p, UNIT(s)->meta.manager->sysvrcnd_path)
|
||||
for (i = 0; i < ELEMENTSOF(rcnd_table); i += 2) {
|
||||
char *path;
|
||||
DIR *d;
|
||||
|
Loading…
Reference in New Issue
Block a user