It would be better to use ovs-ctl from this script, but until now this is an adequate solution.
Reported-by: Jibesh Patra Bug-report: https://bugs.launchpad.net/bugs/822142 --- debian/openvswitch-controller.init | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/debian/openvswitch-controller.init b/debian/openvswitch-controller.init index 4781f83..b61489e 100755 --- a/debian/openvswitch-controller.init +++ b/debian/openvswitch-controller.init @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (c) 2007, 2009 Javier Fernandez-Sanguino <[email protected]> +# Copyright (c) 2007, 2009, 2011 Javier Fernandez-Sanguino <[email protected]> # # This is free software; you may redistribute it and/or modify # it under the terms of the GNU General Public License as @@ -105,6 +105,10 @@ start_server() { exit 0 fi + if [ ! -d /var/run/openvswitch ]; then + install -d -m 755 -o root -g root /var/run/openvswitch + fi + SSL_OPTS= case $LISTEN in *ssl*) -- 1.7.4.4 _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
