From 1d6349d592b6fb0f71133311e38ddbd479f3c3a4 Mon Sep 17 00:00:00 2001 From: satanist Date: Mon, 7 Aug 2023 12:16:53 +0200 Subject: [PATCH] fixup! add instantiated systemd unit --- scripts/clatd@.systemd | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/clatd@.systemd b/scripts/clatd@.systemd index e28761e..580ea7e 100644 --- a/scripts/clatd@.systemd +++ b/scripts/clatd@.systemd @@ -1,11 +1,15 @@ # # clatd service file for systemd # -# Install it to: /etc/systemd/system/clatd.service -# Enable it with: systemctl enable clatd.service -# Start it with: systemctl start clatd.service +# Install it to: /etc/systemd/system/clatd@.service +# Start it with: systemctl start clatd@iface.service +# Stop it with: systemctl stop clatd@iface.service +# +# This is to dynamicaly enable and disable the clat depending on the +# connected network. # # Written by Tore Anderson +# Updated by satanist # [Unit] @@ -16,7 +20,7 @@ StartLimitIntervalSec=0 [Service] Type=simple -ExecStart=/usr/sbin/clatd -c /etc/clatd/%i plat-dev=%i +ExecStart=/usr/sbin/clatd -c /etc/clatd/%i.conf [Install] WantedBy=multi-user.target