tools: add frr@.service

... for starting an FRR instance.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2019-08-08 20:51:01 +02:00
parent a0a7dead0b
commit e2986b1b27
2 changed files with 26 additions and 0 deletions

25
tools/frr@.service Normal file
View File

@ -0,0 +1,25 @@
[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
[Service]
Nice=-5
Type=forking
NotifyAccess=all
StartLimitInterval=3m
StartLimitBurst=3
TimeoutSec=2m
WatchdogSec=60s
RestartSec=5
Restart=on-abnormal
LimitNOFILE=1024
ExecStart=/usr/lib/frr/frrinit.sh start %I
ExecStop=/usr/lib/frr/frrinit.sh stop %I
ExecReload=/usr/lib/frr/frrinit.sh reload %I
[Install]
WantedBy=multi-user.target

View File

@ -48,6 +48,7 @@ EXTRA_DIST += \
tools/frr-reload \
tools/frr-reload.py \
tools/frr.service \
tools/frr@.service \
tools/generate_support_bundle.py \
tools/multiple-bgpd.sh \
tools/rrcheck.pl \