Write into a file the machine shares instead of over it, and reload a service that re-reads its configuration instead of restarting it (hq ADR 0102)

This commit is contained in:
2026-09-22 17:48:57 +02:00
parent 6eabed63eb
commit 0f126d137c
8 changed files with 575 additions and 2 deletions
+6
View File
@@ -254,3 +254,9 @@ func (arch) ReloadUnits(ctx context.Context, run Runner) error {
_, err := run(ctx, "systemctl", "daemon-reload")
return err
}
// ReloadService tells a running unit to read its configuration again, without stopping it.
func (arch) ReloadService(ctx context.Context, run Runner, unit string) error {
_, err := run(ctx, "systemctl", "reload", unit)
return err
}