pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/52143: net/quagga does not start on boot



The following reply was made to PR pkg/52143; it has been noted by GNATS.

From: DOYASHIKI Shinichi <clare%csel.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/52143: net/quagga does not start on boot
Date: Fri, 7 Apr 2017 23:53:40 +0900

 On Fri,  7 Apr 2017 01:50:01 +0000 (UTC)
 Robert Elz <kre%munnari.OZ.AU@localhost> wrote:
 >  The most likely cause of this is that your /usr/pkg is a mounted
 >  filesystem, which is not listed in critical_filesystems_local (or remote).
 >  
 >  After boot (and before rc.local) gets run, all filesystems will be mounted,
 >  but won't necessarily happen before (almost) anything else run from /etc/rc.d
 >  
 >  If you are going to start apps from mounted filesystems at boot time, the
 >  relevant filesystems really need to be listed in one of the "critical" lists.
 >  
 >  That's even more important for apps that should be started relatively early
 >  in the boot process - you really want routing working before network apps
 >  try to use the network, so zebra is one of those...
 
 Thank you for informations.
 I resolved by following configuration:
 
 1) patching /etc/rc.d scripts
 
 --- /usr/pkg/share/examples/rc.d/zebra  2017-03-13 03:51:28.000000000 +0900
 +++ /etc/rc.d/zebra     2017-04-07 23:41:01.282754789 +0900
 @@ -3,7 +3,8 @@
  # zebra is the head of the quagga routing beast
  #
  # PROVIDE: zebra
 -# REQUIRE: NETWORKING
 +# REQUIRE: staticroute dhclient dhcpcd ipfilter pf npf
 +# BEFORE: NETWORKING
  ##
 
  PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
 --- /usr/pkg/share/examples/rc.d/bgpd   2017-03-13 03:51:28.000000000 +0900
 +++ /etc/rc.d/bgpd      2017-04-07 23:30:43.264792518 +0900
 @@ -4,6 +4,7 @@
  #
  # PROVIDE: bgpd
  # REQUIRE: zebra
 +# BEFORE: NETWORKING
  ##
 
  PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
 --- /usr/pkg/share/examples/rc.d/ospfd  2017-03-13 03:51:28.000000000 +0900
 +++ /etc/rc.d/ospfd     2017-04-07 23:30:03.603849872 +0900
 @@ -4,6 +4,7 @@
  #
  # PROVIDE: ospfd
  # REQUIRE: zebra
 +# BEFORE: NETWORKING
  ##
 
  PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
 --- /usr/pkg/share/examples/rc.d/ospf6d 2017-03-13 03:51:28.000000000 +0900
 +++ /etc/rc.d/ospf6d    2017-04-07 23:30:24.180836105 +0900
 @@ -4,6 +4,7 @@
  #
  # PROVIDE: ospf6d
  # REQUIRE: zebra
 +# BEFORE: NETWORKING
  ##
 
  PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
 --- /usr/pkg/share/examples/rc.d/ripd   2017-03-13 03:51:28.000000000 +0900
 +++ /etc/rc.d/ripd      2017-04-07 23:29:37.395844774 +0900
 @@ -4,6 +4,7 @@
  #
  # PROVIDE: ripd
  # REQUIRE: zebra
 +# BEFORE: NETWORKING
  ##
 
  PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
 --- /usr/pkg/share/examples/rc.d/ripngd 2017-03-13 03:51:28.000000000 +0900
 +++ /etc/rc.d/ripngd    2017-04-07 23:29:52.010087887 +0900
 @@ -4,6 +4,7 @@
  #
  # PROVIDE: ripngd
  # REQUIRE: zebra
 +# BEFORE: NETWORKING
  ##
 
  PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
 
 2) adding "/var" and "/usr" to ciritical_filesystems_local parameter in /etc/rc.conf
 
 
 -- 
 DOYASHIKI Shinichi <clare%csel.org@localhost>
 


Home | Main Index | Thread Index | Old Index