This repository was archived by the owner on Jan 10, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 mode '0644'
4646 notifies :restart , 'service[stash]' , :delayed
4747end
48+
49+ directory '/var/run/stash' do
50+ owner 'stash'
51+ group 'stash'
52+ mode '0755'
53+ action :create
54+ end
Original file line number Diff line number Diff line change 288288# set the location of the pid file
289289if [ -z "$CATALINA_PID" ] ; then
290290 if [ -n "$CATALINA_BASE" ] ; then
291- CATALINA_PID="$CATALINA_BASE"/work /catalina.pid
291+ CATALINA_PID=/var/run/stash /catalina.pid
292292 elif [ -n "$CATALINA_HOME" ] ; then
293- CATALINA_PID="$CATALINA_HOME"/work /catalina.pid
293+ CATALINA_PID=/var/run/stash /catalina.pid
294294 fi
295295fi
296296export CATALINA_PID
Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ case "$1" in
6464 status)
6565 < % case node[' platform_family' ] -%>
6666 < % when ' rhel' -%>
67- status -p $BASE /work /catalina.pid $APP
67+ status -p /var/run/stash /catalina.pid $APP
6868 < % else -%>
69- status_of_proc -p $BASE /work /catalina.pid $JAVA_HOME /bin/java $APP
69+ status_of_proc -p /var/run/stash /catalina.pid $JAVA_HOME /bin/java $APP
7070 < % end -%>
7171 RETVAL=$?
7272 ;;
@@ -75,5 +75,5 @@ case "$1" in
7575 RETVAL=2
7676 ;;
7777esac
78-
78+
7979exit $RETVAL
You can’t perform that action at this time.
0 commit comments