diff options
Diffstat (limited to 'nixos/modules/services/networking/xinetd.nix')
-rw-r--r-- | nixos/modules/services/networking/xinetd.nix | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/nixos/modules/services/networking/xinetd.nix b/nixos/modules/services/networking/xinetd.nix index 14ee52ae52e..08680b51780 100644 --- a/nixos/modules/services/networking/xinetd.nix +++ b/nixos/modules/services/networking/xinetd.nix @@ -6,8 +6,6 @@ let cfg = config.services.xinetd; - inherit (pkgs) xinetd; - configFile = pkgs.writeText "xinetd.conf" '' defaults @@ -141,18 +139,12 @@ in ###### implementation config = mkIf cfg.enable { - - jobs.xinetd = - { description = "xinetd server"; - - startOn = "started network-interfaces"; - stopOn = "stopping network-interfaces"; - - path = [ xinetd ]; - - exec = "xinetd -syslog daemon -dontfork -stayalive -f ${configFile}"; - }; - + systemd.services.xinetd = { + description = "xinetd server"; + after = [ "network-interfaces.target" ]; + wantedBy = [ "multi-user.target" ]; + path = [ pkgs.xinetd ]; + script = "xinetd -syslog daemon -dontfork -stayalive -f ${configFile}"; + }; }; - } |