Add env vars to set the controller working directory. 74/2174/2
authorSam Hague <shague@redhat.com>
Fri, 25 Oct 2013 18:00:10 +0000 (14:00 -0400)
committerSam Hague <shague@redhat.com>
Fri, 25 Oct 2013 21:46:19 +0000 (17:46 -0400)
commitc02e6277eae7cf9461a0578ba37d3aa40e6a85f2
tree92616740ef5990d959c525da79c933908c7a2e43
parent821fc2279471ff1bddc856aae2cebc8e8d1fa647
Add env vars to set the controller working directory.

The run.sh makes an assumption that the current working directory is
writeable and owned by the user running the command. These assumptions
don't hold when running the controller as a service such as when it
was installed via an RPM package.

Added two env variables to specify the run directory and the output
directory:

ODL_BASEDIR: working directory
ODL_DATADIR: output directory

By default the run.sh will continue to use the current working directory
and will only use the env vars if they are set.

Change-Id: I85dda38353f632e84409d91ac4dfc4a44c2d457e
Signed-off-by: Sam Hague <shague@redhat.com>
opendaylight/distribution/opendaylight/src/main/resources/run.sh