X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fdistribution%2Fopendaylight%2Fsrc%2Fmain%2Fresources%2Frun.sh;h=6caf3e3f57c55aa0f3c2d88f70e43dde7de355b8;hb=4d59ccad8b2aa6044f2da8f2efcdb46ac4943a02;hp=2daa1f42e3da236d9b320bdad504cdf48eb67903;hpb=9822a34fdd144aeb9932492e1605715eb472ecad;p=controller.git diff --git a/opendaylight/distribution/opendaylight/src/main/resources/run.sh b/opendaylight/distribution/opendaylight/src/main/resources/run.sh index 2daa1f42e3..6caf3e3f57 100755 --- a/opendaylight/distribution/opendaylight/src/main/resources/run.sh +++ b/opendaylight/distribution/opendaylight/src/main/resources/run.sh @@ -44,10 +44,10 @@ function usage { exit 1 } -if [ -v "TMP" ]; then - pidfile="${TMP}/opendaylight.PID" -else +if [ -z ${TMP} ]; then pidfile="/tmp/opendaylight.PID" +else + pidfile="${TMP}/opendaylight.PID" fi debug=0 debugsuspend=0