What exactly would the init script be that I should be looking for? I'm
running Ubuntu, so I guess that would be in the 'debian' directory. If so,
then under that directory I see several files with a .init extention. In
particular, there is a debian/openvswitch-switch.init that has the
following line 28:

(test -x /usr/sbin/ovs-vswitchd && test -x /usr/sbin/ovsdb-server) || exit 0

But my path to ovsdb-server is actually /usr/local/sbin/ovsdb-server and
there are no symbolic links. So is that the problem?

Am I totally off the right path? I'm not sure exactly what I need to do to
get the Ubuntu/Debian init script running. Do I need 'upstart', for
example? Thanks.


-- Umair


On Thu, Feb 7, 2013 at 6:42 PM, Justin Pettit <jpet...@nicira.com> wrote:

> Running that command doesn't cause it to install itself on boot.  You need
> some sort of init script to do that.  We've included ones for various
> distributions in the OVS sources.
>
> (The commands are different but basically equivalent (other than the
> --log-file) because if you don't specify a database, it assumes the
> location is "/usr/local/etc/openvswitch/conf.db".)
>
> --Justin
>
>
> On Feb 7, 2013, at 6:30 PM, Umair Hoodbhoy <umairhoodb...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I have OVS 1.7.3 successfully installed and ovsdb-server is running. But
> upon reboot it is not. INSTALL.Linux says to run this:
> >
> > % ovsdb-server \
> >
>  --remote=punix:/usr/local/var/run/openvswitch/db.sock \
> >                      --remote=db:Open_vSwitch,manager_options \
> >                      --private-key=db:SSL,private_key \
> >                      --certificate=db:SSL,certificate \
> >                      --bootstrap-ca-cert=db:SSL,ca_cert \
> >                      --pidfile --detach
> >
> > But that doesn't make it persistent across reboots. Then I read this
> somewhere to make it persistent:
> > % ovsdb-server /usr/local/etc/openvswitch/conf.db \
> > --remote=punix:/usr/local/var/run/openvswitch/db.sock \
> > --remote=db:Open_vSwitch,manager_options \
> > --private-key=db:SSL,private_key \
> > --certificate=db:SSL,certificate \
> > --bootstrap-ca-cert=db:SSL,ca_cert --pidfile --detach --log-file
> >
> > But I still get this after a reboot:
> >
> > root@ubuntu:~# ps -Af | grep ovsdb-server
> > root      2493  2435  0 18:23 pts/0    00:00:00 grep --color=auto
> ovsdb-server
> > root@ubuntu:~#
> >
> > Any ideas?
> >
> > -- Umair
> > _______________________________________________
> > discuss mailing list
> > discuss@openvswitch.org
> > http://openvswitch.org/mailman/listinfo/discuss
>
>
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to