debian: Create ovs-monitor-ipsec rundir if it doesn't exist
[sliver-openvswitch.git] / 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 \