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