On Tue, Feb 8, 2011 at 3:18 PM, Ben Pfaff <b...@nicira.com> wrote: > On Tue, Feb 08, 2011 at 03:14:39PM -0800, Ethan Jackson wrote: >> > +if test "$#" = 0; then >> > + ? ?echo "# $0: no parameters given (use \"$0 --help\" for help)" >> > +fi >> Perhaps this should cause it to exit unsuccessfully. > > I did it this way in case the init script doesn't find any interfaces to > save. I guess it could avoid invoking it at all in that case.
Yeah I was wondering about this. A possible approach (which I considered mentioning but decided against it) would be to change the force_reload_kmod init script to give up when ovs-save fails (for example on my system it fails because I don't have iptables-save). As part of this change, we could change ovs-save to be more exacting and die with an exit code when things aren't as it expects. This has the benefit of preventing bugs in ovs-save or configuration errors from hosing the system. Either way I think the current patch is fine. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev_openvswitch.org