Skip to content

Commit

Permalink
add initscripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sergkondr committed Dec 16, 2019
1 parent 8b43ea8 commit bcf597e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ENV WRAPPER_URL http://wrapper.tanukisoftware.com/download/${WRAPPER_VER}/wrappe
ADD wrapper.sed /

RUN mkdir -p /home/javaapp/standalone/{bin,conf,lib,logs,temp} /root/prerun; \
yum install -y wget tar gzip && \
yum install -y wget tar gzip initscripts && yum clean all && \
wget -O /home/javaapp/wrapper-linux-x86-64-${WRAPPER_VER}.tar.gz ${WRAPPER_URL} && \
cd /home/javaapp && \
tar -xzf wrapper-linux-x86-64-${WRAPPER_VER}.tar.gz && \
Expand Down
4 changes: 2 additions & 2 deletions run-javaapp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ do
. ${prerun}
done

trap "/sbin/service javaapp stop" SIGINT SIGTERM SIGHUP
trap "/usr/sbin/service javaapp stop" SIGINT SIGTERM SIGHUP

/sbin/service javaapp console &
/usr/sbin/service javaapp console &

wait

0 comments on commit bcf597e

Please sign in to comment.