| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
systemd.services.<name>.restartIfCredentialsChange and
reloadIfCredentialsChange replace hrm.systemd.services.<name>.…; the
alias for stockholm's krebs.systemd.services now points there. Units
can't be made from config.systemd.services itself, so the trigger
services become two templates, credentials-restart@ and
credentials-reload@, which call systemctl themselves; only the path units
remain per service, by their old names. Without comparing checksums
any more: the path units fire when a credential is written, and nothing
rewrites one unchanged.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
reloadIfCredentialsChange reloads the service when its credentials
change, with RefreshOnReload=credentials so the reload sees the new
ones. A service that can't be reloaded is restarted. It is off for
every service so far: tinc's reload doesn't read its private key again,
and the others haven't been checked. An assertion requires ExecReload=
or Type=notify-reload, because with RefreshOnReload= set, systemd
"reloads" any other service by refreshing its credentials without
telling it.
|
| |
|
|
|
| |
systemctl restart starts a service that isn't running; try-restart
doesn't.
|
| | |
|
| |
|
|
|
| |
Units were made for every service in hrm.systemd.services, whatever
restartIfCredentialsChange said. charybdis relied on that.
|
| |
|
|
|
| |
Make the temporary file next to the cache, so mv renames it rather
than copying it from /tmp.
|
| | |
|
| | |
|
|
|
The file was modules/krebs-systemd.nix to stay clear of
modules/systemd.nix. krebs.systemd.services stays as an alias for
stockholm's tinc, repo-sync, and exim-smarthost.
|