[ovs-dev] [PATCH 1/2] debian: Create ovs-monitor-ipsec rundir if it doesn't exist

Romain Lenglet romain at midokura.jp
Tue Sep 28 02:19:02 UTC 2010


Hi Justin,
Why not simply add var/run/openvswitch into debian/openvswitch-ipsec.dirs?

On Tue, Sep 28, 2010 at 10:56 AM, Justin Pettit <jpettit at nicira.com> wrote:

> Reported-by: Sajjad Lateef <slateef at nicira.com>
> ---
>  debian/openvswitch-ipsec.init |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/debian/openvswitch-ipsec.init b/debian/openvswitch-ipsec.init
> index 5f42406..ba82f51 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 \
> --
> 1.7.1
>
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev_openvswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20100928/3792dc89/attachment-0003.html>


More information about the dev mailing list