fix: correct systemd path and service configuration for Caddy route reload

This commit is contained in:
Jakub Dorfman 2026-04-28 20:44:14 +02:00
parent d71e12b3dd
commit fc9c6f1b81

View file

@ -32,16 +32,19 @@
'';
};
systemd.path."caddy-routes-reload" = {
systemd.paths."caddy-routes-reload" = {
wantedBy = [ "multi-user.target" ];
pathConfig = {
PathChanged = "/var/lib/containers/routes/routes.caddy";
};
};
systemd.service."caddy-routes-reload" = {
script = ''
systemctl reload caddy
'';
systemd.services."caddy-routes-reload" = {
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.systemd}/bin/systemctl reload caddy.service";
};
};
}