Open
Conversation
Add a new command to send arbitrary signals to named processes (or all
if none specified), with wildcard matching support. This fills a gap
between `kill` (SIGKILL to all) and `stop` (configurable stop signal):
overmind signal HUP web # SIGHUP to "web"
overmind signal USR1 worker* # SIGUSR1 to matching processes
overmind signal TERM # SIGTERM to all
Also adds HUP to signalMap since it's a primary use case for this
command (config reload).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
overmind signal <SIGNAL> [process name...]command to send arbitrary signals to named processes (or all if none specified)stopandrestartHUPtosignalMap(was missing, primary use case for config reload)Usage examples
Implementation
Follows the same patterns as
stopandrestart:cmd_signal.go— CLI handler, validates signal name arg is present, sends command over socketstart/command_center.go—processSignal()parses signal name viasignalMap, sends to matched processesstart/process.go—Signal()method sends signal viagroupSignal()without modifying lifecycle flags (pure signal passthrough)start/handler.go— AddsHUPtosignalMapmain.go— Registers the new commandTest plan
go buildcompiles successfullyovermind signal HUP <process>sends SIGHUP to a running processovermind signal USR1 web*sends to wildcard-matched processesovermind signal TERM(no process names) sends to all processesovermind signal INVALIDis a silent no-op on the daemon sideovermind signal(no args) prints a fatal error