ovs-bugtool: Use RUNDIR macro for ovs-appctl target.
[openvswitch] / debian / openvswitch-ipsec.init
index 5f4240672ed840aa7cc439b0303a7a9d654db2ab..61a1101b46230f81dc3c51cb568eafa0c30a93fb 100755 (executable)
@@ -69,8 +69,11 @@ running() {
 }
 
 start_server() {
-    PYTHONPATH=/usr/share/openvswitch/python \
-           /usr/share/openvswitch/scripts/ovs-monitor-ipsec \
+    if [ ! -d /var/run/openvswitch ]; then
+        install -d -m 755 -o root -g root /var/run/openvswitch
+    fi
+
+    /usr/share/openvswitch/scripts/ovs-monitor-ipsec \
            --pidfile-name=$PIDFILE --detach --monitor \
            unix:/var/run/openvswitch/db.sock