Commit initial
This commit is contained in:
24
torrent-scrape.service
Normal file
24
torrent-scrape.service
Normal file
@@ -0,0 +1,24 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user