Skip to content

Commit dc7379e

Browse files
committed
nixos/ups: restart upsdrv.service on config changes
Or else new configuration won't take effect until the next boot (or if the user manually restarts the service).
1 parent 8a16a58 commit dc7379e

File tree

1 file changed

+3
-0
lines changed
  • nixos/modules/services/monitoring

1 file changed

+3
-0
lines changed

nixos/modules/services/monitoring/ups.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,9 @@ in
560560
};
561561
environment.NUT_CONFPATH = "/etc/nut";
562562
environment.NUT_STATEPATH = "/var/lib/nut";
563+
restartTriggers = [
564+
config.environment.etc."nut/ups.conf".source
565+
];
563566
};
564567

565568
environment.etc = {

0 commit comments

Comments
 (0)