mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-15 09:26:47 +00:00

On lower CPU with lots of static routes, it will cost more than 2 minutes. 2 minutes is the default timeout value, we can adjust it by configure: ./configure --with-service-timeout=<digit> Signed-off-by: anlan_cs <anlan_cs@tom.com>
27 lines
584 B
SYSTEMD
27 lines
584 B
SYSTEMD
[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=on-abnormal
|
|
LimitNOFILE=1024
|
|
PIDFile=@CFG_STATE@/watchfrr.pid
|
|
ExecStart=@CFG_SBIN@/frrinit.sh start
|
|
ExecStop=@CFG_SBIN@/frrinit.sh stop
|
|
ExecReload=@CFG_SBIN@/frrinit.sh reload
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|