mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-29 16:57:40 +03:00
Change service to systemd
This commit is contained in:
parent
4cc00a1f2b
commit
06818c5cb2
@ -39,13 +39,14 @@ in
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
jobs.sabnzbd =
|
systemd.services.sabnzbd =
|
||||||
{ description = "sabnzbd server";
|
{ description = "sabnzbd server";
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
startOn = "started network-interfaces";
|
after = [ "network.target" ];
|
||||||
stopOn = "stopping network-interfaces";
|
serviceConfig = {
|
||||||
|
Type = "forking";
|
||||||
exec = "${sabnzbd}/bin/sabnzbd -d -f ${cfg.configFile}";
|
ExecStart = "${sabnzbd}/bin/sabnzbd -d -f ${cfg.configFile}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user