premier envoie
This commit is contained in:
17
mqtt_pilot.service
Normal file
17
mqtt_pilot.service
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=MQTT Pilot Service
|
||||
After=network.target
|
||||
# Ajouter un délai après le démarrage du réseau
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
[Service]
|
||||
Type=simple
|
||||
User=gilles
|
||||
# Délai avant de démarrer le service
|
||||
ExecStartPre=/bin/sleep 60
|
||||
ExecStart=/home/gilles/aorus/monenv/bin/python3 /home/gilles/aorus/main.py
|
||||
Restart=on-failure
|
||||
RestartSec=30
|
||||
ExecStopPost=/home/gilles/aorus/monenv/bin/python3 /home/gilles/aorus/mqtt_unvai.py
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user