devenv icon indicating copy to clipboard operation
devenv copied to clipboard

SIGTERM not working correctly for services

Open pokonski opened this issue 1 month ago • 3 comments

Despite the fixes in #2375 the issue is still present and now also for services that worked correctly (postgres in my case) on stable 1.11.2 version

Repro steps

Repro repository: https://github.com/pokonski/sigterm-repro

  1. Run devenv up
  2. press Q in Mprocs to close all processes
  3. Start devenv up again
  4. Observe that redis does not start with the error indicating the port is occupied, and MySQL with an error not being able to lock the DB file (because old process is still running)

pokonski avatar Jan 05 '26 12:01 pokonski

For some reasons the tasks don't shutdown correctly, mprocs is being a difficult here because it works with other process managers.

domenkozar avatar Jan 06 '26 10:01 domenkozar

I don't have a hard preference so I'll switch to the default process-compose, thanks!

pokonski avatar Jan 06 '26 10:01 pokonski

I don't have a hard preference so I'll switch to the default process-compose, thanks!

I'm not a devenv expert, but: you could also try pinning to devenv v1.10; that worked for me

ym-han avatar Jan 07 '26 03:01 ym-han