[Unit]
Description=WHP HAProxy Crash Monitor (docker events listener)
After=network.target docker.service
Requires=docker.service

[Service]
Type=simple
User=root
ExecStart=/root/whp/scripts/haproxy-crash-monitor.sh
Restart=always
RestartSec=5
Environment=HOME=/root

# Logging
StandardOutput=append:/var/log/haproxy-crash-monitor.log
StandardError=append:/var/log/haproxy-crash-monitor.log

[Install]
WantedBy=multi-user.target
