Skip to content
Browse files

Cleanup

  • Loading branch information...
1 parent 28b031a commit 524465f70a32d0eb6bf047e6a05c76c22d52bfa2 @rmillner rmillner committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 port-proxy/bin/openshift-port-proxy-cfg
View
5 port-proxy/bin/openshift-port-proxy-cfg
@@ -10,7 +10,9 @@ source /etc/openshift/node.conf
cfgfile=/etc/openshift/port-proxy.cfg
lockfile="/var/run/openshift-port-proxy.lock"
reloadlock="/var/run/openshift-port-proxy-reload.lock"
-reqprefix="/tmp/openshift-port-proxy-reload.req"
+
+reqdir="/var/run/openshift-port-proxy"
+reqprefix="${reqdir}/reload.req"
###
# System service routines; systemctl may require modifications
@@ -142,6 +144,7 @@ lockwrap() {
fi
if [ $oldsum != $newsum ]; then
+ [ -e $reqdir ] || mkdir -m 750 $reqdir
reqfile=$(mktemp ${reqprefix}.XXXXXX)
flock 201

0 comments on commit 524465f

Please sign in to comment.
Something went wrong with that request. Please try again.