debian: Change openvswitch restart logic for kernel package.
authorGurucharan Shetty <gshetty@nicira.com>
Thu, 17 Jan 2013 18:08:47 +0000 (10:08 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Thu, 17 Jan 2013 21:34:39 +0000 (13:34 -0800)
commit2c11563ad2967db7e5131f763c4d1107919b901e
tree13d76caf59a652537b5f6064b4e080ea55cbf15b
parentaa30ae4e84a2d44dea72e2f7b6fe8ccdbd4f70b1
debian: Change openvswitch restart logic for kernel package.

Currently, every time we install the non-dkms openvswitch kernel package,
we restart openvswitch. This has no useful effect when an Open vSwitch kernel
module is already loaded, because "/etc/init.d/openvswitch restart" does not
load the new version of the kernel module.

With this patch, we start openvswitch if there is no kernel module
currently loaded (which is a case for a fresh install of openvswitch). This
will load the kernel module.

If someone wants to use the latest kernel module after an upgrade, they need
to run "/etc/init.d/openvswitch-switch force-reload-kmod" manually.

Issue #13556
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
debian/openvswitch-datapath-module-_KVERS_.postinst.modules.in