Merge pull request #6078 from boothead/sabnzbd
sabnzbd Change service to systemd
This commit is contained in:
commit
49b67bb9cb
1 changed files with 7 additions and 6 deletions
|
@ -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 a new issue