mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00: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 = {
|
||||
disnix =
|
||||
{ description = "Disnix server";
|
||||
|
||||
startOn = "started dbus"
|
||||
+ optionalString config.services.httpd.enable " and started httpd"
|
||||
+ optionalString config.services.mysql.enable " and started mysql"
|
||||
+ optionalString config.services.tomcat.enable " and started tomcat"
|
||||
+ optionalString config.services.svnserve.enable " and started svnserve";
|
||||
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "dbus.service" ]
|
||||
++ optional config.services.httpd.enable "httpd.service"
|
||||
++ optional config.services.mysql.enable "mysql.service"
|
||||
++ optional config.services.tomcat.enable "tomcat.service"
|
||||
++ optional config.services.svnserve.enable "svnserve.service";
|
||||
|
||||
restartIfChanged = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user