Describe the bug
I'm trying to use alternative process managers (process-compose/mprocs), but they do not stop processes and services on exit. I was able to reproduce this in a minimal example with process-compose while running only the Redis service, but in my project I had the same issue with other services (postgres, rabbitmq), as well as custom processes (e.g. Rails server).
To reproduce
- Install latest devenv:
nix profile install --accept-flake-config github:cachix/devenv/latest
- In an empty dir, run
devenv init
- Change process manager to
process-compose, and enable Redis service (gist)
- Enter
devenv shell and run devenv up - the Redis service starts normally
- Exit process-compose (Ctrl+C)
- Observe running processes (e.g. Activity Monitor): the
redis-server process does not stop as expected
A similar issue happens if I try to restart the process in process-compose:
Warning: Could not create server TCP listening socket 127.0.0.1:6380: bind: Address already in use
Failed listening on port 6380 (tcp), aborting.
I observed similar behaviour when using mprocs, but it does not happen with the native process manager.
Version
devenv 2.0.3+9e5c17c (aarch64-darwin)
Side note
The reason for me wanting to use another process manager is that I would like to be able to use one of my custom processes interactively, which process-compose and mprocs support, theoretically.
Are there any plans to add such functionality to the native process manager in the future?
Describe the bug
I'm trying to use alternative process managers (
process-compose/mprocs), but they do not stop processes and services on exit. I was able to reproduce this in a minimal example withprocess-composewhile running only the Redis service, but in my project I had the same issue with other services (postgres,rabbitmq), as well as custom processes (e.g. Rails server).To reproduce
nix profile install --accept-flake-config github:cachix/devenv/latestdevenv initprocess-compose, and enable Redis service (gist)devenv shelland rundevenv up- the Redis service starts normallyredis-serverprocess does not stop as expectedA similar issue happens if I try to restart the process in process-compose:
I observed similar behaviour when using
mprocs, but it does not happen with the native process manager.Version
devenv 2.0.3+9e5c17c (aarch64-darwin)Side note
The reason for me wanting to use another process manager is that I would like to be able to use one of my custom processes interactively, which
process-composeandmprocssupport, theoretically.Are there any plans to add such functionality to the native process manager in the future?