[ovs-dev] [PATCH] debian: Ensure that /var/run/openvswitch exists in controller init script.
Ben Pfaff
blp at nicira.com
Mon Aug 8 17:56:38 UTC 2011
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 <jfs at debian.org>
+# Copyright (c) 2007, 2009, 2011 Javier Fernandez-Sanguino <jfs at debian.org>
#
# 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
More information about the dev
mailing list