3
0
Fork 0
forked from mirrors/nixpkgs

default-websockify: Stop when reconfigured (i.e. new ports added/removed)

This commit is contained in:
Shea Levy 2013-02-18 11:55:46 -05:00
parent 762ea5c578
commit b83be79adf

View file

@ -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" ];
};