Github user gauravgoyal86 commented on the issue:
https://github.com/apache/nifi/pull/1372
I have just tried using dumb-init
now i am getting following three processes
`15-096-Goyal:exanova-templates gaurav.goyal$ docker exec -it d053f9d31436
ps -ef
PID USER TIME COMMAND
1 root 0:00 dumb-init /opt/nifi/bin/nifi.sh run
7 root 0:00 {nifi.sh} /bin/sh /opt/nifi/bin/nifi.sh run
19 root 0:00 {nifi.sh} /bin/sh /opt/nifi/bin/nifi.sh run`
executing docker stop gave "ExitCode": 143.
is it correct way to use dumb-init?
`def run():
logger.info('Starting Nifi.')
os.execl('/usr/bin/dumb-init', 'dumb-init', '/opt/nifi/bin/nifi.sh',
'run')`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---