From: Justin Pettit <jpettit@nicira.com> Date: Tue, 28 Sep 2010 01:33:56 +0000 (-0700) Subject: debian: Create ovs-monitor-ipsec rundir if it doesn't exist X-Git-Tag: v1.1.0~1068 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b0e62f3daca16a97541d33798e65894fcfa9623c;p=sliver-openvswitch.git debian: Create ovs-monitor-ipsec rundir if it doesn't exist Reported-by: Sajjad Lateef <slateef@nicira.com> --- diff --git a/debian/openvswitch-ipsec.init b/debian/openvswitch-ipsec.init index 5f4240672..ba82f5139 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 \