From cc101ed0dad8703de764c1f4a76bd6bc764a61bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 16 Jan 2021 21:38:51 +0000 Subject: [PATCH] better restart policy for promtail --- nixos/common-services.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/common-services.nix b/nixos/common-services.nix index 9da2c27f..461fc24b 100644 --- a/nixos/common-services.nix +++ b/nixos/common-services.nix @@ -2,7 +2,10 @@ { systemd.services.promtail = { description = "Promtail service for Loki"; - after = [ "network.target" ]; + after = [ "zerotierone.service" "network.target" ]; + requires = [ "zerotierone.service" "network.target" ]; + wants = [ "zerotierone.service" "network.target" ]; + wantedBy = [ "multi-user.target" ]; serviceConfig = {