]> git.proxmox.com Git - mirror_ovs.git/blobdiff - rhel/etc_init.d_openvswitch
DNS: Add basic support for asynchronous DNS resolving
[mirror_ovs.git] / rhel / etc_init.d_openvswitch
index 7e641325637144042db8d4fcb025b5af05211b8d..20d5568036565d2d0aecaefc4921380088b4c406 100755 (executable)
@@ -5,7 +5,7 @@
 # chkconfig: 2345 09 91
 # description: Manage Open vSwitch kernel modules and user-space daemons
 
-# Copyright (C) 2009, 2010, 2011 Nicira, Inc.
+# Copyright (C) 2009, 2010, 2011, 2013 Nicira, Inc.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 ### BEGIN INIT INFO
-# Provides:          openvswitch-switch
+# Provides:          openvswitch
 # Required-Start:
 # Required-Stop:
 # Default-Start:     2 3 4 5
@@ -27,6 +27,8 @@
 # Short-Description: Open vSwitch switch
 ### END INIT INFO
 
+SYSTEMCTL_SKIP_REDIRECT=yes
+
 . /usr/share/openvswitch/scripts/ovs-lib || exit 1
 test -e /etc/sysconfig/openvswitch && . /etc/sysconfig/openvswitch
 
@@ -34,16 +36,16 @@ start () {
     set ovs_ctl ${1-start}
     set "$@" --system-id=random
     if test X"$FORCE_COREFILES" != X; then
-       set "$@" --force-corefiles="$FORCE_COREFILES"
+        set "$@" --force-corefiles="$FORCE_COREFILES"
     fi
     if test X"$OVSDB_SERVER_PRIORITY" != X; then
-       set "$@" --ovsdb-server-priority="$OVSDB_SERVER_PRIORITY"
+        set "$@" --ovsdb-server-priority="$OVSDB_SERVER_PRIORITY"
     fi
     if test X"$VSWITCHD_PRIORITY" != X; then
-       set "$@" --ovs-vswitchd-priority="$VSWITCHD_PRIORITY"
+        set "$@" --ovs-vswitchd-priority="$VSWITCHD_PRIORITY"
     fi
     if test X"$VSWITCHD_MLOCKALL" != X; then
-       set "$@" --mlockall="$VSWITCHD_MLOCKALL"
+        set "$@" --mlockall="$VSWITCHD_MLOCKALL"
     fi
     set "$@" $OVS_CTL_OPTS
     "$@"
@@ -81,6 +83,7 @@ case $1 in
         ;;
     status)
         ovs_ctl status
+        exit $?
         ;;
     version)
         ovs_ctl version