mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-15 05:57:26 +03:00
Revert "Revert "test: add test case for systemd-update-utmp vs daemon-reexec""
This reverts commit 837773add465bd0a0d1f598203d297cf0129468b. The original issue #27287 is fixed by #28123. Let's reintroduce the test for systemd-update-utmp.
This commit is contained in:
parent
cd4ed8579b
commit
08a5bc4f48
@ -45,4 +45,17 @@ systemctl daemon-reload
|
|||||||
# of systemd-analyze blame. See issue #27187.
|
# of systemd-analyze blame. See issue #27187.
|
||||||
systemd-analyze blame
|
systemd-analyze blame
|
||||||
|
|
||||||
|
# Test for 'systemd-update-utmp runlevel' vs 'systemctl daemon-reexec'.
|
||||||
|
# See issue #27163.
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
for _ in {0..10}; do
|
||||||
|
systemctl daemon-reexec &
|
||||||
|
pid_reexec=$!
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
for _ in {0..10}; do
|
||||||
|
SYSTEMD_LOG_LEVEL=debug /usr/lib/systemd/systemd-update-utmp runlevel
|
||||||
|
done
|
||||||
|
wait "$pid_reexec"
|
||||||
|
done
|
||||||
|
|
||||||
touch /testok
|
touch /testok
|
||||||
|
Loading…
x
Reference in New Issue
Block a user