From 49b2b0cd849a3acd040a40b5be98875b58a236b0 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 29 Dec 2021 10:52:45 +0100 Subject: vidhar: ... --- hosts/vidhar/dsl.nix | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'hosts/vidhar/dsl.nix') diff --git a/hosts/vidhar/dsl.nix b/hosts/vidhar/dsl.nix index be07b9f7..0f92a079 100644 --- a/hosts/vidhar/dsl.nix +++ b/hosts/vidhar/dsl.nix @@ -37,15 +37,19 @@ in { debug ''; }; - systemd.services."pppd-telekom".serviceConfig = lib.mkForce { - Type = "forking"; - PIDFile = "/run/pppd/${pppInterface}.pid"; - ExecStart = "${lib.getBin pkgs.ppp}/sbin/pppd call telekom updetach nolog +ipv6"; - Restart = "always"; - RestartSec = 5; + systemd.services."pppd-telekom" = { + stopIfChanged = false; + + serviceConfig = lib.mkForce { + Type = "notify"; + PIDFile = "/run/pppd/${pppInterface}.pid"; + ExecStart = "${lib.getBin pkgs.ppp}/sbin/pppd call telekom up_sdnotify nolog +ipv6"; + Restart = "always"; + RestartSec = 5; - RuntimeDirectory = "pppd"; - RuntimeDirectoryPreserve = true; + RuntimeDirectory = "pppd"; + RuntimeDirectoryPreserve = true; + }; }; sops.secrets."pap-secrets" = { format = "binary"; -- cgit v1.2.3