From: Hung-Wei Chiu Date: Thu, 27 Apr 2017 03:10:36 +0000 (+0800) Subject: Update Building_FRR_on_Ubuntu1604.md X-Git-Tag: frr-3.0-rc0~64^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c39824586473780a9d3a68932f4f98cb7f153766;p=mirror%2Ffrr.git Update Building_FRR_on_Ubuntu1604.md 1. Modify the configure prefix (since there some hard coded path in **/usr/lib/frr/fr** 2. Install the systemd service config --- diff --git a/doc/Building_FRR_on_Ubuntu1604.md b/doc/Building_FRR_on_Ubuntu1604.md index 70a8159cc1..3b9e1415ec 100644 --- a/doc/Building_FRR_on_Ubuntu1604.md +++ b/doc/Building_FRR_on_Ubuntu1604.md @@ -38,6 +38,7 @@ an example.) cd frr ./bootstrap.sh ./configure \ + --prefix=/usr \ --enable-exampledir=/usr/share/doc/frr/examples/ \ --localstatedir=/var/run/frr \ --sbindir=/usr/lib/frr \ @@ -110,3 +111,39 @@ Add the following lines to `/etc/modules-load.d/modules.conf`: mpls-iptunnel **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 `syttemctl status frr` to check its status.