node-foreman
node-foreman copied to clipboard
Processes don't always exit on Ctrl-C (SIGINT)
Thanks for the great software!
For some reason, the processes don't always get signaled to exit when I press Ctrl-C.
When things work correctly, the output looks like this:
11:51:55 AM docker.1 | mailhog-1 | [APIv1] KEEPALIVE /api/v1/events
11:52:55 AM docker.1 | mailhog-1 | [APIv1] KEEPALIVE /api/v1/events
^C[WARN] Interrupted by User
[DONE] Killing all processes with signal SIGINT
11:53:42 AM docker.1 | Gracefully stopping... (press Ctrl+C again to force)
11:53:42 AM webpack.1 | <i> [webpack-dev-server] Gracefully shutting down. To force exit, press ^C again. Please wait...
11:53:42 AM docker.1 | Container mailhog-1 Stopping
11:53:42 AM docker.1 | Container postgres-1 Stopping
11:53:42 AM docker.1 | Container cf-1 Stopping
11:53:42 AM sass.1 Exited with exit code SIGINT
11:53:42 AM cfformat.1 | Stopping...
11:53:42 AM webpack.1 Exited Successfully
11:53:42 AM docker.1 | Container mailhog-1 Stopped
11:53:42 AM docker.1 | Container postgres-1 Stopped
11:53:44 AM cfformat.1 Exited with exit code null
11:53:53 AM docker.1 | Container cf-1 Stopped
11:53:53 AM docker.1 | Container httpd-1 Stopping
11:53:54 AM docker.1 | canceled
11:53:54 AM docker.1 Exited with exit code null
When things don't work correctly, I see something like this:
12:09:04 PM docker.1 | cf-1 | [INFO ] runwar.server: ******************************************************************************
12:09:04 PM docker.1 | cf-1 | [INFO ] runwar.server: Server is up - http-port:8080 stop-port:35709 PID:140 version 4.5.2
^C
and I'm right back to my prompt.
I have not been able to identify any pattern around this behavior, but I've seen it happen in multiple applications that use nf
.