On Wed, Dec 04, 2013 at 10:27:10AM -0800, Gurucharan Shetty wrote:
> > --- a/rhel/etc_sysconfig_network-scripts_ifdown-ovs
> > +++ b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
> > @@ -34,7 +34,15 @@ if [ ! -x ${OTHERSCRIPT} ]; then
> >      OTHERSCRIPT="/etc/sysconfig/network-scripts/ifdown-eth"
> >  fi
> >
> > -[ -f /var/lock/subsys/openvswitch ] || /sbin/service openvswitch start
> > +if [ -x /usr/bin/systemctl ]; then
> > +       if ! systemctl --quiet is-active openvswitch-nonetwork.service; then
> I think this is considered non-portable.
> https://www.sourceware.org/autobook/autobook/autobook_216.html

Yes, but I am not sure that it matters since this script is very Red
Hat specific.  It is probably OK as long as it works with the Red Hat
shells.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to