mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-20 12:07:53 +03:00
Fixed disnix service to use systemd's dependency facilities
This commit is contained in:
parent
e3bbf38ec9
commit
e776c0623d
@ -119,12 +119,13 @@ in
|
|||||||
jobs = {
|
jobs = {
|
||||||
disnix =
|
disnix =
|
||||||
{ description = "Disnix server";
|
{ description = "Disnix server";
|
||||||
|
|
||||||
startOn = "started dbus"
|
wantedBy = [ "multi-user.target" ];
|
||||||
+ optionalString config.services.httpd.enable " and started httpd"
|
after = [ "dbus.service" ]
|
||||||
+ optionalString config.services.mysql.enable " and started mysql"
|
++ optional config.services.httpd.enable "httpd.service"
|
||||||
+ optionalString config.services.tomcat.enable " and started tomcat"
|
++ optional config.services.mysql.enable "mysql.service"
|
||||||
+ optionalString config.services.svnserve.enable " and started svnserve";
|
++ optional config.services.tomcat.enable "tomcat.service"
|
||||||
|
++ optional config.services.svnserve.enable "svnserve.service";
|
||||||
|
|
||||||
restartIfChanged = false;
|
restartIfChanged = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user