Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #63 from vvolodko/fix-stop-container-on-sigterm
Browse files Browse the repository at this point in the history
Fix stopping container with running xtail
  • Loading branch information
cboettig authored Apr 22, 2019
2 parents c61cf10 + 2b26b46 commit 6316c34
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions shiny-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
mkdir -p /var/log/shiny-server
chown shiny.shiny /var/log/shiny-server

if [ "$APPLICATION_LOGS_TO_STDOUT" = "false" ];
if [ "$APPLICATION_LOGS_TO_STDOUT" != "false" ];
then
exec shiny-server 2>&1
else
# start shiny server in detached mode
exec shiny-server 2>&1 &
# push the "real" application logs to stdout with xtail in detached mode
exec xtail /var/log/shiny-server/ &
fi

# push the "real" application logs to stdout with xtail
exec xtail /var/log/shiny-server/
fi
# start shiny server
exec shiny-server 2>&1

0 comments on commit 6316c34

Please # to comment.