On 22 December 2017 at 07:00, Timothy Redaelli <[email protected]> wrote:
> Since you can't use "ovs-ctl force-reload-kmod" on Fedora/RHEL, due to > systemd dependencies, this commit adds the "force-reload-kmod" feature on > ovs-systemd-reload. > > Signed-off-by: Timothy Redaelli <[email protected]> > Tim/Aaron, We have some confusion with this. So, how do we invoke this with systemd? I guess, it is not supposed to be invoked with "service openvswitch reload", right? And why can't we use "ovs-ctl force-reload-kmod" with Fedora/RHEL? > --- > rhel/usr_share_openvswitch_scripts_ovs-systemd-reload | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/rhel/usr_share_openvswitch_scripts_ovs-systemd-reload > b/rhel/usr_share_openvswitch_scripts_ovs-systemd-reload > index 5d2efc621..894df0427 100755 > --- a/rhel/usr_share_openvswitch_scripts_ovs-systemd-reload > +++ b/rhel/usr_share_openvswitch_scripts_ovs-systemd-reload > @@ -40,6 +40,10 @@ add_managers() { > : > } > > -restart > +if [ "$1" = "force-reload-kmod" ]; then > + force_reload_kmod > +else > + restart > +fi > > exit 0 > -- > 2.14.3 > > _______________________________________________ > dev mailing list > [email protected] > https://mail.openvswitch.org/mailman/listinfo/ovs-dev > _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
