From b8a7092873bc5a6b3c914c3a10d0952f9e0dbed2 Mon Sep 17 00:00:00 2001 From: satan1st Date: Tue, 8 Aug 2023 08:33:50 +0200 Subject: [PATCH] add instantiated systemd unit (#29) * add instantiated systemd unit * fixup! add instantiated systemd unit --------- Co-authored-by: satanist --- scripts/clatd@.systemd | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 scripts/clatd@.systemd diff --git a/scripts/clatd@.systemd b/scripts/clatd@.systemd new file mode 100644 index 0000000..580ea7e --- /dev/null +++ b/scripts/clatd@.systemd @@ -0,0 +1,26 @@ +# +# clatd service file for systemd +# +# 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] +Description=464XLAT CLAT daemon +Documentation=man:clatd(8) +After=network-online.target +StartLimitIntervalSec=0 + +[Service] +Type=simple +ExecStart=/usr/sbin/clatd -c /etc/clatd/%i.conf + +[Install] +WantedBy=multi-user.target