mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-04 19:31:44 +00:00
Merge pull request #415 from hwchiu/fix_ubuntu16.04
Update Building_FRR_on_Ubuntu1604 to make it support systemd
This commit is contained in:
commit
e12ff52ab3
@ -39,6 +39,7 @@ an example.)
|
|||||||
git checkout stable/2.0
|
git checkout stable/2.0
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
./configure \
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
--enable-exampledir=/usr/share/doc/frr/examples/ \
|
--enable-exampledir=/usr/share/doc/frr/examples/ \
|
||||||
--localstatedir=/var/run/frr \
|
--localstatedir=/var/run/frr \
|
||||||
--sbindir=/usr/lib/frr \
|
--sbindir=/usr/lib/frr \
|
||||||
@ -111,3 +112,38 @@ Add the following lines to `/etc/modules-load.d/modules.conf`:
|
|||||||
mpls-iptunnel
|
mpls-iptunnel
|
||||||
|
|
||||||
**Reboot** or use `sysctl -p` to apply the same config to the running system
|
**Reboot** or use `sysctl -p` to apply the same config to the running system
|
||||||
|
|
||||||
|
|
||||||
|
### Install the systemd service
|
||||||
|
|
||||||
|
sudo install -m 644 tools/frr.service /etc/systemd/system/frr.service
|
||||||
|
sudo install -m 644 cumulus/etc/default/frr /etc/default/frr
|
||||||
|
sudo install -m 644 cumulus/etc/frr/daemons /etc/frr/daemons
|
||||||
|
sudo install -m 644 cumulus/etc/frr/debian.conf /etc/frr/debian.conf
|
||||||
|
sudo install -m 644 cumulus/etc/frr/Frr.conf /etc/frr/Frr.conf
|
||||||
|
sudo install -m 644 -o frr -g frr cumulus/etc/frr/vtysh.conf /etc/frr/vtysh.conf
|
||||||
|
|
||||||
|
### Enable daemons
|
||||||
|
|
||||||
|
Edit `/etc/frr/daemons` and change the value from "no" to "yes" for those daemons you want to start by systemd.
|
||||||
|
For example.
|
||||||
|
|
||||||
|
zebra=yes
|
||||||
|
bgpd=yes
|
||||||
|
ospfd=yes
|
||||||
|
ospf6d=yes
|
||||||
|
ripd=yes
|
||||||
|
ripngd=yes
|
||||||
|
isisd=yes
|
||||||
|
|
||||||
|
### Enable the systemd serivce
|
||||||
|
Edit `/etc/systemd/system/frr.service` and remove the line **OnFailure=heartbeat-failed@%n.service**
|
||||||
|
For example.
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=Cumulus Linux FRR
|
||||||
|
After=syslog.target networking.service
|
||||||
|
|
||||||
|
### Start the systemd service
|
||||||
|
- systemctl start frr
|
||||||
|
- use `systemctl status frr` to check its status.
|
||||||
|
Loading…
Reference in New Issue
Block a user