25 lines
582 B
Desktop File
25 lines
582 B
Desktop File
# Fichier systemd pour lancer le serveur scrape au démarrage.
|
|
#
|
|
# Installation :
|
|
# sudo cp torrent-scrape.service /etc/systemd/system/
|
|
# sudo systemctl daemon-reload
|
|
# sudo systemctl enable --now torrent-scrape
|
|
#
|
|
# Logs :
|
|
# sudo journalctl -u torrent-scrape -f
|
|
|
|
[Unit]
|
|
Description=Torrent Tracker Scrape Server
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
# Adapter le chemin et l'utilisateur selon votre configuration
|
|
User=www-data
|
|
ExecStart=/usr/bin/python3 /var/www/torrent-indicator/scrape_server.py
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|