diff options
| author | Ben Pfaff <blp@nicira.com> | 2011-08-08 10:58:38 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-08-08 10:59:07 -0700 |
| commit | 298fd6d2d25ac8028f76c23cd52374370fe3be42 (patch) | |
| tree | 9c1289f1354f22a4fcc6fb3d6da0b5051a4133ed /debian | |
| parent | 7b6b0ef47e398a2fbda48fd385f9781b2df8bebb (diff) | |
| download | openvswitch-298fd6d2d25ac8028f76c23cd52374370fe3be42.tar.gz | |
debian: Ensure that /var/run/openvswitch exists in controller init script.
It would be better to use ovs-ctl from this script, but until now this is
an adequate solution.
Reported-by: Jibesh Patra
Bug-report: https://bugs.launchpad.net/bugs/822142
Diffstat (limited to 'debian')
| -rwxr-xr-x | debian/openvswitch-controller.init | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/openvswitch-controller.init b/debian/openvswitch-controller.init index 4781f83f2..1638f1495 100755 --- a/debian/openvswitch-controller.init +++ b/debian/openvswitch-controller.init @@ -1,5 +1,6 @@ #!/bin/sh # +# Copyright (c) 2011 Nicira Networks Inc. # Copyright (c) 2007, 2009 Javier Fernandez-Sanguino <jfs@debian.org> # # This is free software; you may redistribute it and/or modify @@ -105,6 +106,10 @@ start_server() { exit 0 fi + if [ ! -d /var/run/openvswitch ]; then + install -d -m 755 -o root -g root /var/run/openvswitch + fi + SSL_OPTS= case $LISTEN in *ssl*) |
