You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2020/04/07 11:38:01 UTC

[GitHub] [nifi] ophers commented on a change in pull request #4182: NIFI-7318 Allow 'docker stop' to gracefully shutdown

ophers commented on a change in pull request #4182: NIFI-7318 Allow 'docker stop' to gracefully shutdown
URL: https://github.com/apache/nifi/pull/4182#discussion_r404741402
 
 

 ##########
 File path: nifi-docker/dockerhub/sh/start.sh
 ##########
 @@ -79,11 +79,12 @@ case ${AUTH} in
 esac
 
 # Continuously provide logs so that 'docker logs' can    produce them
-tail -F "${NIFI_HOME}/logs/nifi-app.log" &
 "${NIFI_HOME}/bin/nifi.sh" run &
 nifi_pid="$!"
+tail -F --pid=${nifi_pid} "${NIFI_HOME}/logs/nifi-app.log" &
 
-trap "echo Received trapped signal, beginning shutdown...;" KILL TERM HUP INT EXIT;
+trap 'echo Received trapped signal, beginning shutdown...;./bin/nifi.sh stop;exit 0;' KILL TERM HUP INT;
 
 Review comment:
   Sorry for the late response... we're on the eve of a COVID-19 curfew here...
   Yes, I agree with you KILL is superfluous.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services