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 5f42406..ba82f51 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 \