Change service to systemd

This commit is contained in:
Ben Ford 2014-09-22 12:09:53 +01:00
parent 4cc00a1f2b
commit 06818c5cb2

View File

@ -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}";
};
};
};