mirror of
https://github.com/Routstr/routstrd.git
synced 2026-08-10 04:07:00 +00:00
The 'restart' command failed when the old daemon still held the cocod pidfile during wallet disposal — assertLegacyCocodNotRunning detected the PID as 'cocod running' and refused to start. - Call stopLegacyCocod() in restart, update restart, and service install (previously only in 'start'). - After /stop, poll for both health-down AND pidfile-released before spawning the new daemon. The pidfile is released during wallet disposal, which happens after server.close(), so health check alone was insufficient.