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" = {
|
systemd.targets."default-websockify" = {
|
||||||
description = "Target to start all default websockify@ services";
|
description = "Target to start all default websockify@ services";
|
||||||
|
unitConfig."X-StopOnReconfiguration" = true;
|
||||||
wants = mapAttrsToList (name: value: "websockify@${name}:${toString value}.service") cfg.portMap;
|
wants = mapAttrsToList (name: value: "websockify@${name}:${toString value}.service") cfg.portMap;
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user