mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
default-websockify: Stop when reconfigured (i.e. new ports added/removed)
This commit is contained in:
parent
762ea5c578
commit
b83be79adf
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ let cfg = config.services.networking.websockify; in {
|
|||
|
||||
systemd.targets."default-websockify" = {
|
||||
description = "Target to start all default websockify@ services";
|
||||
unitConfig."X-StopOnReconfiguration" = true;
|
||||
wants = mapAttrsToList (name: value: "websockify@${name}:${toString value}.service") cfg.portMap;
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue