ISO/root-image/etc/rc.d/functions.d/omit_kill_nbd_client

9 lines
230 B
Plaintext
Raw Normal View History

if [[ -f /run/nbd_client.pid ]]; then
omit_kill_nbd_client() {
add_omit_pids $(< /run/nbd_client.pid)
}
add_hook shutdown_prekillall omit_kill_nbd_client
add_hook single_prekillall omit_kill_nbd_client
fi