Skip to content

Commit

Permalink
nixos/librenms: order librenms-setup after network.target (#363706)
Browse files Browse the repository at this point in the history
  • Loading branch information
NetaliDev authored Dec 11, 2024
2 parents 53261ae + 8153ad4 commit 2f610f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/monitoring/librenms.nix
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ in
systemd.services.librenms-setup = {
description = "Preparation tasks for LibreNMS";
before = [ "phpfpm-librenms.service" ];
after = [ "systemd-tmpfiles-setup.service" ]
after = [ "systemd-tmpfiles-setup.service" "network.target" ]
++ (lib.optional (cfg.database.host == "localhost") "mysql.service");
wantedBy = [ "multi-user.target" ];
restartTriggers = [ package configFile ];
Expand Down

0 comments on commit 2f610f9

Please sign in to comment.