chore: update
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
[Unit]
|
||||
Description=SSH Monitor — alertes Telegram + bannissement automatique
|
||||
Documentation=https://github.com/pyTelegramBotAPI/pyTelegramBotAPI
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/python3 /home/xor_fakers/projet_gestion_commande/scripts/ssh_monitor.py
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
# Root requis pour iptables
|
||||
User=root
|
||||
|
||||
# Sortie dans journald (journalctl -u ssh-monitor -f)
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=ssh-monitor
|
||||
|
||||
# Redémarrer même si le process quitte proprement (ex : erreur init)
|
||||
RestartForceExitStatus=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user