Skip to content

Commit

Permalink
Merge pull request #408 from splunk/fix-startup
Browse files Browse the repository at this point in the history
Update entrypoint.sh
  • Loading branch information
Ryan Faircloth authored and GitHub committed Apr 10, 2020
2 parents 1f14fce + 24170b9 commit 0b41aa6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions package/sbin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ echo syslog-ng starting
/opt/syslog-ng/sbin/syslog-ng $@ &
pid="$!"
# wait forever
while true
do
tail -f /dev/null & wait ${!}
done
if [[ $@ != *"-s"* ]]; then
while true
do
tail -f /dev/null & wait ${!}
done
fi

0 comments on commit 0b41aa6

Please sign in to comment.