diff options
author | Timothy Redaelli <tredaelli@redhat.com> | 2017-12-22 16:00:53 +0100 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-01-08 10:39:47 -0800 |
commit | 8b54e31ff32904339c83abb8c1ab865de5d5a13c (patch) | |
tree | aee6859ae676331f0d07c0837a46305f6d57b674 /rhel/usr_share_openvswitch_scripts_ovs-systemd-reload | |
parent | d922ebc876afb89729e5e582cc4642e3ae8d4799 (diff) | |
download | openvswitch-8b54e31ff32904339c83abb8c1ab865de5d5a13c.tar.gz |
rhel: add "force-reload-kmod" support in "ovs-systemd-reload"
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 <tredaelli@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Tested-by: Greg Rose <gvrose8192@gmail.com>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Diffstat (limited to 'rhel/usr_share_openvswitch_scripts_ovs-systemd-reload')
-rwxr-xr-x | rhel/usr_share_openvswitch_scripts_ovs-systemd-reload | 6 |
1 files changed, 5 insertions, 1 deletions
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 |