Files

26 lines
823 B
Desktop File
Raw Permalink Normal View History

2026-08-21 07:34:45 +03:00
[Unit]
Description=Cloud IP Validator - Validator Agent
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=cloud-ip-validator
Group=cloud-ip-validator
ExecStart=/usr/local/bin/validator-agent -config /etc/cloud-ip-validator/validator-agent.yaml
# Optional (leading "-": the file may be absent). Holds CONTROL_API_AGENT_TOKEN,
# the same value as on control-api. Keep it mode 0600, owned by the service
# user.
EnvironmentFile=-/etc/cloud-ip-validator/validator-agent.env
2026-08-21 07:34:45 +03:00
Restart=on-failure
RestartSec=5
NoNewPrivileges=true
# Unprivileged ICMP echo requires either root or CAP_NET_RAW; grant only
# the latter rather than running the agent as root.
AmbientCapabilities=CAP_NET_RAW
CapabilityBoundingSet=CAP_NET_RAW
ProtectSystem=strict
PrivateTmp=true
[Install]
WantedBy=multi-user.target