TEST-13-NSPAWN: add test for 'machinectl terminate'
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 12 Oct 2024 20:15:18 +0000 (05:15 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Oct 2024 20:58:25 +0000 (05:58 +0900)
commit841988f80d2440501a3baddba712cdb955225ab7
tree677662b7f2e6d388f3d3f676a65c80d67a0cca87
parentc9dea52941a9b9c8794774bab78b8c329e228e92
TEST-13-NSPAWN: add test for 'machinectl terminate'

This also fixes the test for io.systemd.Machine.Terminate.

When systemd-nspawn@.service receives stop signal, then systemd-nspawn
sends SIGRTMIN+3 to the container, which was previously ignored by the
custom init script used by the container.
Let's introduce another trap for the signal, and correctly handle it.

Follow-up for 164af66f9abdfd8935098d9f10c746ff29dea7df.
test/units/TEST-13-NSPAWN.machined.sh