diff options
Diffstat (limited to 'recipes-networking/openvswitch/files')
| -rwxr-xr-x | recipes-networking/openvswitch/files/openvswitch-testcontroller (renamed from recipes-networking/openvswitch/files/openvswitch-controller) | 20 | ||||
| -rw-r--r-- | recipes-networking/openvswitch/files/openvswitch-testcontroller-setup (renamed from recipes-networking/openvswitch/files/openvswitch-controller-setup) | 6 |
2 files changed, 13 insertions, 13 deletions
diff --git a/recipes-networking/openvswitch/files/openvswitch-controller b/recipes-networking/openvswitch/files/openvswitch-testcontroller index 026974a7..aad5ad60 100755 --- a/recipes-networking/openvswitch/files/openvswitch-controller +++ b/recipes-networking/openvswitch/files/openvswitch-testcontroller | |||
| @@ -19,7 +19,7 @@ | |||
| 19 | # Suite 330, Boston, MA 02111-1307 USA | 19 | # Suite 330, Boston, MA 02111-1307 USA |
| 20 | # | 20 | # |
| 21 | ### BEGIN INIT INFO | 21 | ### BEGIN INIT INFO |
| 22 | # Provides: openvswitch-controller | 22 | # Provides: openvswitch-testcontroller |
| 23 | # Required-Start: $network $local_fs $remote_fs | 23 | # Required-Start: $network $local_fs $remote_fs |
| 24 | # Required-Stop: $remote_fs | 24 | # Required-Stop: $remote_fs |
| 25 | # Should-Start: $named | 25 | # Should-Start: $named |
| @@ -31,9 +31,9 @@ | |||
| 31 | 31 | ||
| 32 | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | 32 | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin |
| 33 | 33 | ||
| 34 | DAEMON=/usr/bin/ovs-controller # Introduce the server's location here | 34 | DAEMON=/usr/bin/ovs-testcontroller # Introduce the server's location here |
| 35 | NAME=ovs-controller # Introduce the short server's name here | 35 | NAME=ovs-testcontroller # Introduce the short server's name here |
| 36 | DESC=ovs-controller # Introduce a short description here | 36 | DESC=ovs-testcontroller # Introduce a short description here |
| 37 | LOGDIR=/var/log/openvswitch # Log directory to use | 37 | LOGDIR=/var/log/openvswitch # Log directory to use |
| 38 | 38 | ||
| 39 | PIDFILE=/var/run/openvswitch/$NAME.pid | 39 | PIDFILE=/var/run/openvswitch/$NAME.pid |
| @@ -43,7 +43,7 @@ test -x $DAEMON || exit 0 | |||
| 43 | . /lib/lsb/init-functions | 43 | . /lib/lsb/init-functions |
| 44 | 44 | ||
| 45 | # Default options, these can be overriden by the information | 45 | # Default options, these can be overriden by the information |
| 46 | # at /etc/default/openvswitch-controller | 46 | # at /etc/default/openvswitch-testcontroller |
| 47 | DAEMON_OPTS="" # Additional options given to the server | 47 | DAEMON_OPTS="" # Additional options given to the server |
| 48 | 48 | ||
| 49 | DODTIME=10 # Time to wait for the server to die, in seconds | 49 | DODTIME=10 # Time to wait for the server to die, in seconds |
| @@ -56,7 +56,7 @@ LOGFILE=$LOGDIR/$NAME.log # Server logfile | |||
| 56 | # is set start-stop-daemon will chuid the server | 56 | # is set start-stop-daemon will chuid the server |
| 57 | 57 | ||
| 58 | # Include defaults if available | 58 | # Include defaults if available |
| 59 | default=/etc/default/openvswitch-controller | 59 | default=/etc/default/openvswitch-testcontroller |
| 60 | if [ -f $default ] ; then | 60 | if [ -f $default ] ; then |
| 61 | . $default | 61 | . $default |
| 62 | fi | 62 | fi |
| @@ -113,9 +113,9 @@ start_server() { | |||
| 113 | SSL_OPTS= | 113 | SSL_OPTS= |
| 114 | case $LISTEN in | 114 | case $LISTEN in |
| 115 | *ssl*) | 115 | *ssl*) |
| 116 | : ${PRIVKEY:=/etc/openvswitch-controller/privkey.pem} | 116 | : ${PRIVKEY:=/etc/openvswitch-testcontroller/privkey.pem} |
| 117 | : ${CERT:=/etc/openvswitch-controller/cert.pem} | 117 | : ${CERT:=/etc/openvswitch-testcontroller/cert.pem} |
| 118 | : ${CACERT:=/etc/openvswitch-controller/cacert.pem} | 118 | : ${CACERT:=/etc/openvswitch-testcontroller/cacert.pem} |
| 119 | if test ! -e "$PRIVKEY" || test ! -e "$CERT" || | 119 | if test ! -e "$PRIVKEY" || test ! -e "$CERT" || |
| 120 | test ! -e "$CACERT"; then | 120 | test ! -e "$CACERT"; then |
| 121 | if test ! -e "$PRIVKEY"; then | 121 | if test ! -e "$PRIVKEY"; then |
| @@ -265,7 +265,7 @@ case "$1" in | |||
| 265 | log_warning_msg "cannot re-read the config file (use restart)." | 265 | log_warning_msg "cannot re-read the config file (use restart)." |
| 266 | ;; | 266 | ;; |
| 267 | *) | 267 | *) |
| 268 | N=/etc/init.d/openvswitch-controller | 268 | N=/etc/init.d/openvswitch-testcontroller |
| 269 | echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 | 269 | echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 |
| 270 | exit 1 | 270 | exit 1 |
| 271 | ;; | 271 | ;; |
diff --git a/recipes-networking/openvswitch/files/openvswitch-controller-setup b/recipes-networking/openvswitch/files/openvswitch-testcontroller-setup index 1d9f9261..b431ece5 100644 --- a/recipes-networking/openvswitch/files/openvswitch-controller-setup +++ b/recipes-networking/openvswitch/files/openvswitch-testcontroller-setup | |||
| @@ -15,15 +15,15 @@ LISTEN="pssl:" | |||
| 15 | 15 | ||
| 16 | # PRIVKEY: Name of file containing controller's private key. | 16 | # PRIVKEY: Name of file containing controller's private key. |
| 17 | # Required if SSL enabled. | 17 | # Required if SSL enabled. |
| 18 | PRIVKEY=/etc/openvswitch-controller/privkey.pem | 18 | PRIVKEY=/etc/openvswitch-testcontroller/privkey.pem |
| 19 | 19 | ||
| 20 | # CERT: Name of file containing certificate for private key. | 20 | # CERT: Name of file containing certificate for private key. |
| 21 | # Required if SSL enabled. | 21 | # Required if SSL enabled. |
| 22 | CERT=/etc/openvswitch-controller/cert.pem | 22 | CERT=/etc/openvswitch-testcontroller/cert.pem |
| 23 | 23 | ||
| 24 | # CACERT: Name of file containing switch CA certificate. | 24 | # CACERT: Name of file containing switch CA certificate. |
| 25 | # Required if SSL enabled. | 25 | # Required if SSL enabled. |
| 26 | CACERT=/etc/openvswitch-controller/cacert.pem | 26 | CACERT=/etc/openvswitch-testcontroller/cacert.pem |
| 27 | 27 | ||
| 28 | # Additional options to pass to controller, e.g. "--hub" | 28 | # Additional options to pass to controller, e.g. "--hub" |
| 29 | DAEMON_OPTS="" | 29 | DAEMON_OPTS="" |
