Reload guard.yaml without losing the bounties
systemctl reload guard, guard reload or SIGHUP reads the configuration again: a watch keeps its bounties and counts under the same name and takes its new settings at once; its source starts again only if it changed; watches gone stop, new ones start; a file with a mistake is refused. The Housecarl connection, state, socket and log wait for a restart, and guard reload says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9c655abae2
commit
ecf4129877
11 files changed
+607
-93
No files matched your search
@@ -9,6 +9,8 @@ Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/guard --config /etc/guard/guard.yaml run
|
||||
# systemctl reload guard: guard.yaml again, keeping the bounties.
|
||||
ExecReload=/usr/local/bin/guard --config /etc/guard/guard.yaml reload
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
|
||||
Reference in new issue
Block a user