debian: Create ovs-monitor-ipsec rundir if it doesn't exist
authorJustin Pettit <jpettit@nicira.com>
Tue, 28 Sep 2010 01:33:56 +0000 (18:33 -0700)
committerJustin Pettit <jpettit@nicira.com>
Tue, 28 Sep 2010 01:33:56 +0000 (18:33 -0700)
Reported-by: Sajjad Lateef <slateef@nicira.com>
debian/openvswitch-ipsec.init

index 5f4240672ed840aa7cc439b0303a7a9d654db2ab..ba82f5139017157baa4703e49a223bbd848f75a0 100755 (executable)
@@ -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 \