On Thu, Dec 19, 2013 at 10:34 PM, Dietmar Maurer <[email protected]> wrote: >> > Yes, that work, but the network device is activated too late. >> > All other service in runlevel 2 depends on working network devices, and >> > thus >> fail. >> > >> [Moving this to discuss instead of dev] >> >> What are those other services that start after networking and before >> openvswitch starts that depend on the OVS bridge? I can think of NFS. > > NFS is just one example. Other examples are (grep '$network' /etc/init.d/*): > > apache2, ceph, cman, exim, postfix, sheepdog, openvz, ... > >> If that is the only case, > > I guess there are hundreds of services depending on service '$network' > >> there is a circular dependency with NFS and OVS and >> there is no clear way that I know of to solve it. > > Why do you depend on NFS (why is that required to start a network device)?
http://openvswitch.org/pipermail/discuss/2011-October/005902.html You can follow the replies to that thread. > > I currently use the following patch for Proxmox VE: > > Index: new/debian/openvswitch-switch.init > =================================================================== > --- new.orig/debian/openvswitch-switch.init 2013-12-18 09:16:04.138935573 > +0100 > +++ new/debian/openvswitch-switch.init 2013-12-19 06:23:22.424300483 +0100 > @@ -16,10 +16,12 @@ > # > ### BEGIN INIT INFO > # Provides: openvswitch-switch > -# Required-Start: $network $named $remote_fs $syslog > -# Required-Stop: $remote_fs > -# Default-Start: 2 3 4 5 > -# Default-Stop: 0 1 6 > +# Required-Start: checkroot > +# Required-Stop: $local_fs > +# X-Start-Before: networking > +# X-Stop-After: networking > +# Default-Start: S > +# Default-Stop: 0 6 > # Short-Description: Open vSwitch switch > # Description: openvswitch-switch provides the userspace components > and utilities for > # the Open vSwitch kernel-based switch. > Index: new/debian/rules > =================================================================== > --- new.orig/debian/rules 2013-12-18 07:59:19.000000000 +0100 > +++ new/debian/rules 2013-12-19 10:23:47.363457352 +0100 > @@ -131,7 +131,8 @@ > dh_installexamples > dh_installdebconf > dh_installlogrotate > - dh_installinit -R > + dh_installinit -p "openvswitch-switch" -R -- start 20 S . stop 80 0 6 > . > + dh_installinit --remaining-packages -R > dh_installcron > dh_installman --language=C > dh_link > > > > _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
