summarylogtreecommitdiffstats
path: root/rundir.patch
diff options
context:
space:
mode:
authoryegorius2015-06-24 11:45:01 +0300
committeryegorius2015-06-24 11:45:01 +0300
commitecfd6d054675da97bec5d9264a36477963ec3210 (patch)
tree82cb24dec2054cc79ab896541468263e846a7b62 /rundir.patch
downloadaur-ecfd6d054675da97bec5d9264a36477963ec3210.tar.gz
Initial import
Diffstat (limited to 'rundir.patch')
-rw-r--r--rundir.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/rundir.patch b/rundir.patch
new file mode 100644
index 000000000000..1f230cad8d7a
--- /dev/null
+++ b/rundir.patch
@@ -0,0 +1,24 @@
+--- a/jetty.sh 2014-05-26 20:37:30.000000000 +0300
++++ b/jetty.sh 2014-06-06 23:47:41.000000000 +0300
+@@ -261,10 +261,8 @@
+ #####################################################
+ # Find a location for the pid file
+ #####################################################
+-if [ -z "$JETTY_RUN" ]
+-then
+- JETTY_RUN=$(findDirectory -w /var/run /usr/var/run $JETTY_BASE /tmp)
+-fi
++mkdir -p "$JETTY_RUN"
++chown -R "$JETTY_USER":"$JETTY_USER" "$JETTY_RUN"
+
+ #####################################################
+ # Find a pid and state file
+@@ -276,7 +274,7 @@
+
+ if [ -z "$JETTY_STATE" ]
+ then
+- JETTY_STATE=$JETTY_BASE/${NAME}.state
++ JETTY_STATE=$JETTY_RUN/${NAME}.state
+ fi
+ JETTY_ARGS+=("jetty.state=$JETTY_STATE")
+ rm -f $JETTY_STATE