added systemd service and moved fail2ban code to separate files

This commit is contained in:
Altair-sh
2026-11-07 00:17:13 +01:00
parent faa1eca7c3
commit 2054f805c8
4 changed files with 35 additions and 20 deletions
+19
View File
@@ -0,0 +1,19 @@
[Unit]
Description=serveg file server
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=filebin
Group=filebin
WorkingDirectory=/home/filebin
ExecStart=/home/filebin/serveg
Restart=on-failure
RestartSec=5
KillSignal=SIGTERM
TimeoutStopSec=10
[Install]
WantedBy=multi-user.target