]> git.puffer.fish Git - mirror/frr.git/commitdiff
doc: Fix Debian 9 build instructions 1683/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 27 Jan 2018 07:52:13 +0000 (02:52 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 27 Jan 2018 07:52:13 +0000 (02:52 -0500)
Using /var/run/frr as a localstate directory will allow
debian9 to just delete that directory on every reboot.
This causes issues for people who are new to the system
in that FRR will just stop working on a reboot.

Instead just point people at a better spot.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
doc/Building_FRR_on_Debian9.md

index 1536c25932760fdc886701087d316892847602bc..e2d424a3eac44c0c85c7c3a91d8b61f2699d9dfd 100644 (file)
@@ -20,7 +20,7 @@ any packages**
 
     sudo addgroup --system --gid 92 frr
     sudo addgroup --system --gid 85 frrvty
-    sudo adduser --system --ingroup frr --home /var/run/frr/ \
+    sudo adduser --system --ingroup frr --home /var/opt/frr/ \
        --gecos "FRR suite" --shell /bin/false frr
     sudo usermod -a -G frrvty frr
 
@@ -34,7 +34,7 @@ an example.)
     ./bootstrap.sh
     ./configure \
         --enable-exampledir=/usr/share/doc/frr/examples/ \
-        --localstatedir=/var/run/frr \
+        --localstatedir=/var/opt/frr \
         --sbindir=/usr/lib/frr \
         --sysconfdir=/etc/frr \
         --enable-vtysh \
@@ -61,6 +61,7 @@ an example.)
 ### Create empty FRR configuration files
 
     sudo install -m 755 -o frr -g frr -d /var/log/frr
+    sudo install -m 755 -o frr -g frr -d /var/opt/frr
     sudo install -m 775 -o frr -g frrvty -d /etc/frr
     sudo install -m 640 -o frr -g frr /dev/null /etc/frr/zebra.conf
     sudo install -m 640 -o frr -g frr /dev/null /etc/frr/bgpd.conf
@@ -91,20 +92,6 @@ other settings)
 
 ### Troubleshooting
 
-**Local state directory**
-
-The local state directory must exist and have the correct permissions applied
-for the frrouting daemons to start.  In the above ./configure example the
-local state directory is set to /var/run/frr (--localstatedir=/var/run/frr)
-Debian considers /var/run/frr to be temporary and this is removed after a
-reboot.
-
-When using a different local state directory you need to create the new
-directory and change the ownership to the frr user, for example:
-
-    mkdir /var/opt/frr
-    chown frr /var/opt/frr
-
 **Shared library error**
 
 If you try and start any of the frrouting daemons you may see the below error