26 lines
647 B
Desktop File
26 lines
647 B
Desktop File
[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
|