0
0
Fork 0
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:
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" ];
};