mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-26 13:45:14 +07:00
execute: when running in session mode, still enforce proper ordering of logger socket
This commit is contained in:
parent
ebfaa1586e
commit
c9dae904f3
@ -1253,8 +1253,7 @@ int unit_load_fragment(Unit *u) {
|
|||||||
c = NULL;
|
c = NULL;
|
||||||
|
|
||||||
if (c &&
|
if (c &&
|
||||||
(c->output == EXEC_OUTPUT_KERNEL || c->output == EXEC_OUTPUT_SYSLOG) &&
|
(c->output == EXEC_OUTPUT_KERNEL || c->output == EXEC_OUTPUT_SYSLOG)) {
|
||||||
u->meta.manager->running_as != MANAGER_SESSION) {
|
|
||||||
int k;
|
int k;
|
||||||
|
|
||||||
/* If syslog or kernel logging is requested, make sure
|
/* If syslog or kernel logging is requested, make sure
|
||||||
@ -1263,8 +1262,9 @@ int unit_load_fragment(Unit *u) {
|
|||||||
if ((k = unit_add_dependency_by_name(u, UNIT_AFTER, SPECIAL_LOGGER_SOCKET)) < 0)
|
if ((k = unit_add_dependency_by_name(u, UNIT_AFTER, SPECIAL_LOGGER_SOCKET)) < 0)
|
||||||
return k;
|
return k;
|
||||||
|
|
||||||
if ((k = unit_add_dependency_by_name(u, UNIT_REQUIRES, SPECIAL_LOGGER_SOCKET)) < 0)
|
if (u->meta.manager->running_as != MANAGER_SESSION)
|
||||||
return k;
|
if ((k = unit_add_dependency_by_name(u, UNIT_REQUIRES, SPECIAL_LOGGER_SOCKET)) < 0)
|
||||||
|
return k;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user