mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/movim: move phpExecutionUnit service in requires order
This commit is contained in:
parent
02600c4ac5
commit
521d3689fb
1 changed files with 9 additions and 9 deletions
|
@ -786,6 +786,15 @@ in
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.${phpExecutionUnit} = {
|
||||||
|
wantedBy = lib.optional (cfg.nginx != null) "nginx.service";
|
||||||
|
requiredBy = [ "movim.service" ];
|
||||||
|
before = [ "movim.service" ] ++ lib.optional (cfg.nginx != null) "nginx.service";
|
||||||
|
wants = [ "network.target" ];
|
||||||
|
requires = [ "movim-data-setup.service" ] ++ lib.optional cfg.database.createLocally dbService;
|
||||||
|
after = [ "movim-data-setup.service" ] ++ lib.optional cfg.database.createLocally dbService;
|
||||||
|
};
|
||||||
|
|
||||||
services.movim = {
|
services.movim = {
|
||||||
description = "Movim daemon";
|
description = "Movim daemon";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
@ -820,15 +829,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.${phpExecutionUnit} = {
|
|
||||||
wantedBy = lib.optional (cfg.nginx != null) "nginx.service";
|
|
||||||
requiredBy = [ "movim.service" ];
|
|
||||||
before = [ "movim.service" ] ++ lib.optional (cfg.nginx != null) "nginx.service";
|
|
||||||
wants = [ "network.target" ];
|
|
||||||
requires = [ "movim-data-setup.service" ] ++ lib.optional cfg.database.createLocally dbService;
|
|
||||||
after = [ "movim-data-setup.service" ] ++ lib.optional cfg.database.createLocally dbService;
|
|
||||||
};
|
|
||||||
|
|
||||||
tmpfiles.settings."10-movim" = with cfg; {
|
tmpfiles.settings."10-movim" = with cfg; {
|
||||||
"${dataDir}".d = {
|
"${dataDir}".d = {
|
||||||
inherit user group;
|
inherit user group;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue