[Unit] Description=Withdraw CDN prefix when local HTTPS fails Wants=network-online.target bird.service nginx.service Requires=cdn-address.service After=network-online.target cdn-address.service bird.service nginx.service [Service] Type=notify NotifyAccess=main EnvironmentFile=/etc/default/edge-health ExecStart=/usr/bin/python3 /usr/local/sbin/edge-health.py ExecStopPost=/usr/bin/timeout 10 /usr/sbin/birdc disable cdn_prefix Restart=always RestartSec=10 WatchdogSec=45 TimeoutStartSec=30 TimeoutStopSec=15 NoNewPrivileges=true ProtectHome=true ProtectSystem=strict PrivateTmp=true [Install] WantedBy=multi-user.target