sudo journalctl -af -n 1 -u "${WORKER_UNIT}" &
WORKER_JOURNAL_PID=$!
In this snippet, WORKER_JOURNAL_PID is set to the PID of the sudo process.
Sudo doesn't propagate any signals - therefore the child process of sudo
(journalctl in this case) isn't killed when a signal is sent to the parent.
Use pkill -P instead which kills all processes where sudo is the parent.
Signed-off-by: Ondřej Budai <ondrej@budai.cz>
|
||
|---|---|---|
| .. | ||
| deploy | ||
| test-case-generators | ||
| clouddot_build_deploy.sh | ||
| deploy-openstack | ||
| deploy-qemu | ||
| gen-certs.sh | ||
| gen-user-data | ||
| image-info | ||
| koji-compose.py | ||
| libvirt_test.sh | ||
| prepare-source.sh | ||
| provision.sh | ||
| run-koji-container.sh | ||