Add --reload-env: service re-reads and validates its config, restarts when idle if it changed

This commit is contained in:
mram
2026-09-22 09:02:25 +02:00
parent 7a6409831c
commit 98d2d714ca
3 changed files with 114 additions and 30 deletions
+4
View File
@@ -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")