summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorlethalman <lucabru@src.gnome.org>2015-02-03 13:32:59 +0100
committerlethalman <lucabru@src.gnome.org>2015-02-03 13:32:59 +0100
commit49b67bb9cbac57ae67b45d68c4aded74ed5d7dfc (patch)
treec63d7e828a811a81201d2a6516bfab961e972a0e /nixos
parente1a8755b963d75e1f1535981c9cc48202bb20298 (diff)
parent06818c5cb29853db0652a2981f0a99cee835384e (diff)
downloadnixpkgs-49b67bb9cbac57ae67b45d68c4aded74ed5d7dfc.tar
nixpkgs-49b67bb9cbac57ae67b45d68c4aded74ed5d7dfc.tar.gz
nixpkgs-49b67bb9cbac57ae67b45d68c4aded74ed5d7dfc.tar.bz2
nixpkgs-49b67bb9cbac57ae67b45d68c4aded74ed5d7dfc.tar.lz
nixpkgs-49b67bb9cbac57ae67b45d68c4aded74ed5d7dfc.tar.xz
nixpkgs-49b67bb9cbac57ae67b45d68c4aded74ed5d7dfc.tar.zst
nixpkgs-49b67bb9cbac57ae67b45d68c4aded74ed5d7dfc.zip
Merge pull request #6078 from boothead/sabnzbd
sabnzbd Change service to systemd
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/sabnzbd.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/nixos/modules/services/networking/sabnzbd.nix b/nixos/modules/services/networking/sabnzbd.nix
index 83db0841b34..77bf64b80d0 100644
--- a/nixos/modules/services/networking/sabnzbd.nix
+++ b/nixos/modules/services/networking/sabnzbd.nix
@@ -39,13 +39,14 @@ in
         }
       ];
 
-    jobs.sabnzbd =
+    systemd.services.sabnzbd =
       { description = "sabnzbd server";
-
-        startOn = "started network-interfaces";
-        stopOn = "stopping network-interfaces";
-
-        exec = "${sabnzbd}/bin/sabnzbd -d -f ${cfg.configFile}";
+        wantedBy    = [ "multi-user.target" ];
+        after = [ "network.target" ];
+        serviceConfig = {
+          Type = "forking";
+          ExecStart = "${sabnzbd}/bin/sabnzbd -d -f ${cfg.configFile}";
+        };
       };
 
   };