summaryrefslogtreecommitdiffstats
path: root/modules/systemd-credentials.nix
Commit message (Collapse)AuthorAgeFilesLines
* systemd-credentials: make the options part of systemd.servicestv14 hours1-56/+52
| | | | | | | | | | | | 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.
* exim-smarthost: use hrm.systemd.servicestv13 days1-1/+1
|
* systemd-credentials: optionally reload instead of restarttv13 days1-2/+26
| | | | | | | | | | | 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.
* systemd-credentials: don't start stopped servicestv13 days1-1/+1
| | | | | systemctl restart starts a service that isn't running; try-restart doesn't.
* tinc: use hrm.systemd.servicestv13 days1-1/+1
|
* systemd-credentials: honor restartIfCredentialsChangetv13 days1-1/+1
| | | | | Units were made for every service in hrm.systemd.services, whatever restartIfCredentialsChange said. charybdis relied on that.
* systemd-credentials: update the cache atomicallytv13 days1-1/+1
| | | | | Make the temporary file next to the cache, so mv renames it rather than copying it from /tmp.
* systemd-credentials: drop let { body }tv13 days1-4/+4
|
* systemd-credentials: use mylib instead of slibtv13 days1-8/+6
|
* systemd-credentials: rename krebs.systemd to hrm.systemdtv13 days1-0/+78
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.