mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
make plausible service start after clickhouse service
Plausible fails on start because clickhouse is not ready, when clickhouse has low CPU available, eg. ```nix {systemd.services.clickhouse.serviceConfig.CPUWeight = 20;} ``` Fixed with ```nix {systemd.services.plausible.after = [ "clickhouse.service" ];} ```
This commit is contained in:
parent
91a403bdf8
commit
565a729f7c
1 changed files with 5 additions and 1 deletions
|
@ -188,7 +188,11 @@ in {
|
|||
inherit (pkgs.plausible.meta) description;
|
||||
documentation = [ "https://plausible.io/docs/self-hosting" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = optionals cfg.database.postgres.setup [ "postgresql.service" "plausible-postgres.service" ];
|
||||
after = optional cfg.database.clickhouse.setup "clickhouse.service"
|
||||
++ optionals cfg.database.postgres.setup [
|
||||
"postgresql.service"
|
||||
"plausible-postgres.service"
|
||||
];
|
||||
requires = optional cfg.database.clickhouse.setup "clickhouse.service"
|
||||
++ optionals cfg.database.postgres.setup [
|
||||
"postgresql.service"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue