Merge pull request #6078 from boothead/sabnzbd

sabnzbd Change service to systemd

lethalman 49b67bb9 e1a8755b

+7 -6
+7 -6
nixos/modules/services/networking/sabnzbd.nix
··· 39 39 } 40 40 ]; 41 41 42 - jobs.sabnzbd = 42 + systemd.services.sabnzbd = 43 43 { description = "sabnzbd server"; 44 - 45 - startOn = "started network-interfaces"; 46 - stopOn = "stopping network-interfaces"; 47 - 48 - exec = "${sabnzbd}/bin/sabnzbd -d -f ${cfg.configFile}"; 44 + wantedBy = [ "multi-user.target" ]; 45 + after = [ "network.target" ]; 46 + serviceConfig = { 47 + Type = "forking"; 48 + ExecStart = "${sabnzbd}/bin/sabnzbd -d -f ${cfg.configFile}"; 49 + }; 49 50 }; 50 51 51 52 };