[ovs-dev] [PATCH 1/2] debian: Create ovs-monitor-ipsec rundir if it doesn't exist
Justin Pettit
jpettit at nicira.com
Tue Sep 28 01:56:49 UTC 2010
Reported-by: Sajjad Lateef <slateef at nicira.com>
---
debian/openvswitch-ipsec.init | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/debian/openvswitch-ipsec.init b/debian/openvswitch-ipsec.init
index 5f42406..ba82f51 100755
--- a/debian/openvswitch-ipsec.init
+++ b/debian/openvswitch-ipsec.init
@@ -69,6 +69,10 @@ running() {
}
start_server() {
+ if [ ! -d /var/run/openvswitch ]; then
+ install -d -m 755 -o root -g root /var/run/openvswitch
+ fi
+
PYTHONPATH=/usr/share/openvswitch/python \
/usr/share/openvswitch/scripts/ovs-monitor-ipsec \
--pidfile-name=$PIDFILE --detach --monitor \
--
1.7.1
More information about the dev
mailing list