ISO/root-image/etc/rc.d/functions.d/omit_kill_nbd_client
Gerardo Exequiel Pozzi 280c5a2395 Avoid killing nbd-daemon on shutdown
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2011-07-09 15:14:49 -03:00

9 lines
230 B
Plaintext

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