From 1c9f20dd4015548800bbcd8ae16dbd1f5a2263ee Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Mon, 13 May 2024 17:51:59 +0100 Subject: [PATCH] exec xl2tpd haven't fully worked out why, but without this s6 is unable to stop it. --- modules/ppp/l2tp.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/ppp/l2tp.nix b/modules/ppp/l2tp.nix index 361d032..75afc75 100644 --- a/modules/ppp/l2tp.nix +++ b/modules/ppp/l2tp.nix @@ -54,10 +54,9 @@ in longrun { inherit name; run = '' - . ${serviceFns} mkdir -p /run/xl2tpd touch ${control} - ${xl2tpd}/bin/xl2tpd -D -p /run/xl2tpd/${name}.pid -c ${conf} -C ${control} + exec ${xl2tpd}/bin/xl2tpd -D -p /run/xl2tpd/${name}.pid -c ${conf} -C ${control} ''; notification-fd = 10; }