mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
tests: install execs from user units too
Fixes: systemd[39]: systemd-exit.service: Executing: /bin/kill -s 58 29 systemd[39]: systemd-exit.service: Failed at step EXEC spawning /bin/kill: No such file or directory systemd[29]: Received SIGCHLD from PID 39 ((kill)). systemd[29]: Child 39 ((kill)) died (code=exited, status=203/EXEC)
This commit is contained in:
parent
db260eedc2
commit
c7eda0133b
@ -179,12 +179,17 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_execs() {
|
install_execs() {
|
||||||
# install any Execs from the service files
|
ddebug "install any Execs from the service files"
|
||||||
egrep -ho '^Exec[^ ]*=[^ ]+' $initdir/lib/systemd/system/*.service \
|
(
|
||||||
| while read i; do
|
export PKG_CONFIG_PATH=$TEST_BASE_DIR/../src/core/
|
||||||
i=${i##Exec*=}; i=${i##-}
|
systemdsystemunitdir=$(pkg-config --variable=systemdsystemunitdir systemd)
|
||||||
inst $i
|
systemduserunitdir=$(pkg-config --variable=systemduserunitdir systemd)
|
||||||
done
|
egrep -ho '^Exec[^ ]*=[^ ]+' $initdir/{$systemdsystemunitdir,$systemduserunitdir}/*.service \
|
||||||
|
| while read i; do
|
||||||
|
i=${i##Exec*=}; i=${i##-}
|
||||||
|
inst $i
|
||||||
|
done
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
generate_module_dependencies() {
|
generate_module_dependencies() {
|
||||||
|
Loading…
Reference in New Issue
Block a user