[Unit]
Description=AlertManager webhook — Hermes monitor bridge
After=network.target hermes-agent.service

[Service]
User={{ webhook_user }}
Group={{ webhook_user }}
Environment=WEBHOOK_PORT={{ webhook_port }}
ExecStart=/usr/bin/python3 {{ webhook_install_dir }}/webhook.py
Restart=on-failure
RestartSec=10s
StandardOutput=journal
StandardError=journal
SyslogIdentifier=alertmanager-webhook

[Install]
WantedBy=multi-user.target
