CountBdDaemons() was using `bd daemon list --json` which triggers daemon auto-start as a side effect. During shutdown verification, this caused a new daemon to spawn after all daemons were killed, resulting in "bd daemon shutdown incomplete: 1 still running" error. Replaced all `bd daemon killall` calls with pkill in: - stopBdDaemons() - restartBdDaemons() Changed CountBdDaemons() to use pgrep instead of bd daemon list. Also removed the now-unused parseBdDaemonCount helper function and its tests.
776 B
776 B