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

Fix stopping container with running xtail #63

Merged
merged 1 commit into from
Apr 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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