LINUX.ORG.RU

История изменений

Исправление intelfx, (текущая версия) :

madcore

$ sudo systemd-run --unit test -- bash -c 'n=0; while :; do echo $((n++)); sleep 0.1; done'
Running as unit: test.service

$ sleep 5

$ sudo systemctl kill --signal=SIGSTOP systemd-journald

$ sleep 5

$ sudo systemctl kill --signal=SIGKILL systemd-journald

$ sudo systemctl kill --signal=SIGCONT systemd-journald

$ sudo systemctl stop test

$ journalctl -b _SYSTEMD_UNIT=test.service -e -n1 | cat
-- Logs begin at Thu 2018-11-15 16:14:10 MSK, end at Fri 2018-11-30 22:16:24 MSK. --
ноя 30 22:14:46 able bash[26006]: 296

$ journalctl -b _SYSTEMD_UNIT=test.service | wc -l     
298

Исходная версия intelfx, :

madcore

$ sudo systemd-run --unit test -- bash -c 'n=0; while :; do echo $((n++)); sleep 0.1; done'
Running as unit: test.service

$ sleep 5

$ sudo systemctl kill --signal=SIGSTOP systemd-journald

$ sleep 5

$ sudo systemctl kill --signal=SIGKILL systemd-journald

$ sudo systemctl kill --signal=SIGCONT systemd-journald

$ sudo systemctl stop test

$ journalctl -b _SYSTEMD_UNIT=test10.service -e -n1 | cat
-- Logs begin at Thu 2018-11-15 16:14:10 MSK, end at Fri 2018-11-30 22:16:24 MSK. --
ноя 30 22:14:46 able bash[26006]: 296

$ journalctl -b _SYSTEMD_UNIT=test.service | wc -l     
298