Add --reload-env: service re-reads and validates its config, restarts when idle if it changed
This commit is contained in:
@@ -26,6 +26,10 @@ const CmdUpdateNow = "update-now"
|
||||
// CmdStatus asks for a one-line JSON status snapshot (monitor mode).
|
||||
const CmdStatus = "status"
|
||||
|
||||
// CmdReloadEnv asks the service to re-read and validate its config file,
|
||||
// and to restart onto it (once the GPU is idle) when it changed.
|
||||
const CmdReloadEnv = "reload-env"
|
||||
|
||||
// ErrUnavailable means no running service offers the control channel.
|
||||
var ErrUnavailable = errors.New("control channel unavailable")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user