[Unit]
Description=IPWatch MQTT Agent
After=network.target mosquitto.service
Wants=network.target

[Service]
Type=simple
User=root
ExecStart=/usr/bin/python3 /usr/local/bin/ipwatch_mqtt_agent.py
Restart=always
RestartSec=10

# Logs
StandardOutput=journal
StandardError=journal
SyslogIdentifier=ipwatch-mqtt-agent

# Sécurité
PrivateTmp=yes
NoNewPrivileges=false
ProtectSystem=strict
ProtectHome=read-only
ReadWritePaths=/var/log

[Install]
WantedBy=multi-user.target
