[Unit]
Description=DashCaddy Pylon — Health Check Relay
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/node /opt/dashcaddy-pylon/dashcaddy-pylon.js
Restart=always
RestartSec=5
Environment=PYLON_PORT=3002
Environment=PYLON_NAME=%H
# Uncomment and set a shared key for authentication:
#Environment=PYLON_KEY=your-shared-secret
StandardOutput=journal
StandardError=journal
SyslogIdentifier=dashcaddy-pylon

[Install]
WantedBy=multi-user.target
