From 17c83d081adaed552606c8dc0171bd2f19e3b77e Mon Sep 17 00:00:00 2001 From: "painpain@minty" Date: Thu, 19 Feb 2026 11:57:04 +0100 Subject: [PATCH] install/config.sh usr/etc/systemd/system/tcpd.service --- install/config.sh | 7 +++++++ usr/etc/systemd/system/tcpd.service | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/install/config.sh b/install/config.sh index 21bc0ab..98faf62 100755 --- a/install/config.sh +++ b/install/config.sh @@ -21,3 +21,10 @@ cat $SUDO_HOME/$FILE > $SKEL/$FILE groupadd svr usermod -aG svr $SUDO_USER + +systemctl daemon-reexec +systemctl daemon-reload +systemctl enable tcpd +systemctl start tcpd + + diff --git a/usr/etc/systemd/system/tcpd.service b/usr/etc/systemd/system/tcpd.service index 53c711e..fd9f6c8 100755 --- a/usr/etc/systemd/system/tcpd.service +++ b/usr/etc/systemd/system/tcpd.service @@ -1,10 +1,11 @@ [Unit] -Description=watch connections -After=network-online.target +Description=TCP connections logger +After=network.target [Service] -ExecStart=/bin/bash /etc/systemd/system/tcpd.sh Type=simple +ExecStart=/svr/usr/bin/tcpd /var/log/connections/lasts.tcpd +Restart=always [Install] WantedBy=multi-user.target