Run "_rc_wait stop" _before_ stopping the daemon and not after...
authorajacoutot <ajacoutot@openbsd.org>
Thu, 11 Nov 2021 12:08:36 +0000 (12:08 +0000)
committerajacoutot <ajacoutot@openbsd.org>
Thu, 11 Nov 2021 12:08:36 +0000 (12:08 +0000)
commited6c56c52885ad771e313394046ee5e2120af0ab
treee67e4b8255eed7f1e233142f678a9ce104cb6b94
parent940020b6a09fe7695bec0d4e8d09f0f97638d4d6
Run "_rc_wait stop" _before_ stopping the daemon and not after...
This doesn't change the default behavior but fixes rc.d scripts with a home made
rc_stop() function that can block and potentially hangs halt/reboot forever.

ok robert@
etc/rc.d/rc.subr