From 758c7ef657eab111cf1aafba3f74911de82dd33f Mon Sep 17 00:00:00 2001
From: Daniel Barlow <dan@telent.net>
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 361d032f..75afc75d 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;
 }