]> git.proxmox.com Git - mirror_frr.git/commitdiff
debianpkg: Do not start package after installation
authorMartin Winter <mwinter@opensourcerouting.org>
Mon, 12 Jun 2017 23:14:03 +0000 (16:14 -0700)
committerMartin Winter <mwinter@opensourcerouting.org>
Tue, 10 Oct 2017 14:52:47 +0000 (07:52 -0700)
- Remove auto-start from Ubuntu 12.04 Backport
- Update Doc to explain on how to enable startup

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
debianpkg/README.deb_build.md
debianpkg/backports/ubuntu12.04/debian/frr.postinst

index 617c2fb37af0451596bc8ce84c8dd703b038f40a..3156c3672dd35a7f0f04a7fe85efaadb378cba0e 100644 (file)
@@ -71,13 +71,32 @@ the sources (`frr_*.orig.tar.gz`, `frr_*.debian.tar.xz` and `frr_*.dsc`)
 Enabling daemons after installation of the package:
 ---------------------------------------------------
 
-1. Edit /etc/frr/daemons and enable required routing daemons (Zebra is probably needed for most deployments, so make sure to enable it.)
+1. Edit `/etc/frr/daemons` and enable required routing daemons (Zebra is
+probably needed for most deployments, so make sure to enable it.)
  
 2. Check your firewall / IPtables to make sure the routing protocols are
 allowed.
         
-3. Start/Restart the daemons (or reboot)
+3. Enable FRR at startup
 
-        systemctl restart frr
-            
-Configuration is stored in `/etc/frr/*.conf` files and daemon selection is stored in `/etc/frr/daemons`.
+    - On `init.d` based systems (Ubuntu 12.04)
+
+            sudo update-rc.d frr defaults
+
+    - On `systemd` based systems (Debian 8, Ubuntu 14.04, 16.04)
+
+            sudo systemctl enable frr
+
+4. Start/Restart the daemons (or reboot)
+
+    - On `init.d` based systems (Ubuntu 12.04)
+
+            sudo invoke-rc.d frr start
+
+    - on `systemd` based systems (Debian 8, Ubuntu 14.04, 16.04)
+
+            sudo systemctl start frr
+
+
+Configuration is stored in `/etc/frr/*.conf` files and daemon selection
+is stored in `/etc/frr/daemons`.
index 5f1918b27fcd24640a9b99d9278c92bdb66315eb..9020d7bf7a9dac45776acfdbcadeeb2b6ea0e32d 100644 (file)
@@ -36,12 +36,5 @@ fi
 
 db_stop
 
-if [ -x "/etc/init.d/frr" ] || [ -e "/etc/init/frr.conf" ]; then
-       if [ ! -e "/etc/init/frr.conf" ]; then
-               update-rc.d frr defaults >/dev/null
-       fi
-       invoke-rc.d frr start || exit $?
-fi
-
 #DEBHELPER#