[Unit]
Description=FRRouting
Documentation=https://frrouting.readthedocs.io/en/latest/setup.html
Wants=network.target
After=network-pre.target systemd-sysctl.service
Before=network.target
OnFailure=heartbeat-failed@%n

[Service]
Nice=-5
Type=forking
NotifyAccess=all
StartLimitInterval=3m
StartLimitBurst=3
TimeoutSec=@TIMEOUT_MIN@m
WatchdogSec=60s
RestartSec=5
Restart=always
LimitNOFILE=1024
PIDFile=@e_frr_runstatedir@/watchfrr.pid
ExecStart=@e_sbindir@/frrinit.sh start
ExecStop=@e_sbindir@/frrinit.sh stop
ExecReload=@e_sbindir@/frrinit.sh reload

[Install]
WantedBy=multi-user.target
