diff options
author | MinerSebas <scherthan_sebastian@web.de> | 2024-03-16 17:46:03 +0100 |
---|---|---|
committer | MinerSebas <scherthan_sebastian@web.de> | 2024-03-16 18:02:17 +0100 |
commit | 2210ac77645b0e72e5f4e916fcf86a45dac23d62 (patch) | |
tree | f47c59e9c075aebe4ab927e74d269eb46d8d2c5a /nixos | |
parent | 7d6917088cd27899e6d9c929b8f0746e950cddde (diff) |
nixos/scrutiny: Order scrutiny.service after influxdb2.service
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/monitoring/scrutiny.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/scrutiny.nix b/nixos/modules/services/monitoring/scrutiny.nix index 35b663fb443d1..fbe8ab25299e4 100644 --- a/nixos/modules/services/monitoring/scrutiny.nix +++ b/nixos/modules/services/monitoring/scrutiny.nix @@ -167,7 +167,8 @@ in systemd.services.scrutiny = { description = "Hard Drive S.M.A.R.T Monitoring, Historical Trends & Real World Failure Thresholds"; wantedBy = [ "multi-user.target" ]; - after = [ "network.target" ]; + after = [ "network.target" ] ++ lib.optional cfg.influxdb.enable "influxdb2.service"; + wants = lib.optional cfg.influxdb.enable "influxdb2.service"; environment = { SCRUTINY_VERSION = "1"; SCRUTINY_WEB_DATABASE_LOCATION = "/var/lib/scrutiny/scrutiny.db"; |