Commit 99323908 authored by Vitaly Lipatov's avatar Vitaly Lipatov

router: add systemd service and timer units for route-update and route-health

route-update.service: loads/restores policy routes at boot and periodically (5min) route-health.service: monitors gateway health and manages failover (1min) Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 3cf04915
[Unit]
Description=Check gateway health and manage failover
After=route-update.service
[Service]
Type=oneshot
WorkingDirectory=/root/etersoft-admin-essential/router
ExecStart=/root/etersoft-admin-essential/router/route-health.sh
[Unit]
Description=Periodically check gateway health and failover
[Timer]
OnBootSec=1min
OnUnitActiveSec=1min
[Install]
WantedBy=timers.target
[Unit]
Description=Update policy routing tables from routes.d
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
WorkingDirectory=/root/etersoft-admin-essential/router
ExecStart=/root/etersoft-admin-essential/router/route-update.sh
[Install]
WantedBy=multi-user.target
[Unit]
Description=Periodically update policy routing tables
[Timer]
OnBootSec=5min
OnUnitActiveSec=5min
[Install]
WantedBy=timers.target
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment