feat: Ajoute les services systemd pour snmp2mqtt
This commit is contained in:
19
snmp2mqtt.service
Normal file
19
snmp2mqtt.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=SNMP to MQTT bridge for Home Assistant
|
||||
Documentation=https://git.antoineve.me/AntoineVe/snmp2mqtt
|
||||
After=network.target
|
||||
Wants=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=snmp2mqtt
|
||||
Group=snmp2mqtt
|
||||
WorkingDirectory=/home/snmp2mqtt/snmp2mqtt
|
||||
ExecStart=/home/snmp2mqtt/snmp2mqtt/.venv/bin/python /home/snmp2mqtt/snmp2mqtt/snmp2mqtt.py --config /home/snmp2mqtt/snmp2mqtt/config.yaml
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user