mirror of
https://github.com/systemd/systemd
synced 2025-11-18 08:14:46 +01:00
Compare commits
2 Commits
308d40626d
...
516df12af9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
516df12af9 | ||
|
|
6454fde83e |
@ -55,6 +55,8 @@ static int device_monitor_handler(sd_device_monitor *monitor, sd_device *device,
|
|||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fflush(stdout);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -35,6 +35,9 @@ for i in {1..5}; do
|
|||||||
echo "Start #$i"
|
echo "Start #$i"
|
||||||
|
|
||||||
systemctl stop --no-block systemd-resolved.service
|
systemctl stop --no-block systemd-resolved.service
|
||||||
|
# Wait for systemd-resolved in ExecStart= being stopped.
|
||||||
|
# shellcheck disable=SC2016
|
||||||
|
timeout 10 bash -c 'until [[ "$(systemctl show --property=MainPID --value systemd-resolved.service)" == 0 ]]; do sleep 0.1; done'
|
||||||
if ! resolvectl; then
|
if ! resolvectl; then
|
||||||
journalctl -o short-monotonic --no-hostname --no-pager -u systemd-resolved.service -n 15
|
journalctl -o short-monotonic --no-hostname --no-pager -u systemd-resolved.service -n 15
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user