forked from mirrors/nixpkgs
default-websockify: Stop when reconfigured (i.e. new ports added/removed)
This commit is contained in:
parent
762ea5c578
commit
b83be79adf
|
@ -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…
Reference in a new issue