3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #82808 from nlewo/fix-alertmanager

nixos/alertmanager: start after the network-online target
This commit is contained in:
lewo 2020-03-28 09:29:01 +01:00 committed by GitHub
commit afb035a32b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,7 +155,7 @@ in {
systemd.services.alertmanager = {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
after = [ "network-online.target" ];
preStart = ''
${lib.getBin pkgs.envsubst}/bin/envsubst -o "/tmp/alert-manager-substituted.yaml" \
-i "${alertmanagerYml}"