Unloading kernel modules will destroy all of the datapaths, which is a
drastic action. So we are probably better off doing that only if the
user requests it explicitly.
--pidfile /var/run/ovsdb-server.pid \
--exec $ovsdb_server
echo "ovsdb-server."
-
- unload_modules
;;
force-stop)
echo -n "Forcefully stopping ovs-vswitchd: "
else
echo " ERROR."
fi
-
- unload_modules
+ ;;
+ unload)
+ unload_modules
;;
reload)
;;
;;
*)
N=/etc/init.d/$NAME
- echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2
+ echo "Usage: $N {start|stop|restart|force-reload|status|force-stop|unload}" >&2
exit 1
;;
esac