blob: 4280251c0af2baa0edf0496d1dfa15cee159fbe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
From 30a85abc06a7a47cb57f743a5aff81caf6cd892b Mon Sep 17 00:00:00 2001
From: Jared Van Bortel <cebtenzzre@gmail.com>
Date: Sun, 15 Feb 2026 16:28:15 -0500
Subject: [PATCH 2/6] systemd: load network templates from /etc/pia-tools
Upstream defaults to /etc/systemd/network/ for the .tmpl files, but
that pollutes a system-managed directory with non-standard files.
Install templates to /etc/pia-tools/ and pass explicit
--netdev-template and --network-template flags instead.
Co-authored-by: Cursor <cursoragent@cursor.com>
---
systemd/system/pia-reset-tunnel@.service | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/systemd/system/pia-reset-tunnel@.service b/systemd/system/pia-reset-tunnel@.service
index 091d2d3..bd8ab7a 100644
--- a/systemd/system/pia-reset-tunnel@.service
+++ b/systemd/system/pia-reset-tunnel@.service
@@ -7,7 +7,10 @@ ConditionPathExists=/etc/pia.conf
[Service]
EnvironmentFile=/etc/pia.conf
Type=oneshot
-ExecStart=/usr/bin/sudo -u pia /usr/bin/pia-setup-tunnel --region $PIA_REGION --username $PIA_USERNAME --password $PIA_PASSWORD --ifname %I
+ExecStart=/usr/bin/sudo -u pia /usr/bin/pia-setup-tunnel \
+ --netdev-template /etc/pia-tools/%I.netdev.tmpl \
+ --network-template /etc/pia-tools/%I.network.tmpl \
+ --region $PIA_REGION --username $PIA_USERNAME --password $PIA_PASSWORD --ifname %I
ExecStartPost=-/usr/bin/ip link set down dev %I
ExecStartPost=-/usr/bin/ip link del %I
ExecStartPost=/usr/bin/networkctl reload
--
2.53.0
|