Comments (5)
@spujadas thanks for fixing it, however don't you think it is sort of duplication in what's in start.sh
already? Perhaps you may want to consider something like in startx.sh
instead:
_term() {
kill -TERM "$child" 2>/dev/null
}
trap _term SIGTERM
/usr/local/bin/start.sh &
child=$!
wait "$child"
^ Ref.: https://unix.stackexchange.com/questions/146756/forward-sigterm-to-child-in-bash
So startx.sh
shouldn't really "know" how to kill what start.sh
is starting, merely forward the term signal to it.
More good stuff in http://veithen.github.io/2014/11/16/sigterm-propagation.html as well.
What do you think?
from elkx-docker.
Well spotted, should now be solved (build in progress), let me know if you're still experiencing this issue.
from elkx-docker.
Clever and infinitely more elegant than my quick and dirty workaround, thanks!
Will implement your solution.
from elkx-docker.
Great stuff, just needed an extra wait ${child}
in the _term()
function otherwise startx.sh
wouldn't wait for start.sh
to end before exiting.
from elkx-docker.
Yeah, I didn't experiment with the whole thing, however also in http://veithen.github.io/2014/11/16/sigterm-propagation.html there are two wait
s; so I think it makes sense.
Thanks for the fix! 🙇
from elkx-docker.
Related Issues (18)
- container doesn t start HOT 11
- Support disable x-pack security HOT 1
- Issue starting Logstash HOT 2
- Index not appearing in Kibana HOT 7
- latest, 600: ELKX 6.0.0. doesn't start HOT 1
- File name too long HOT 5
- Enable X-Pack security for Kibana only HOT 3
- Can not find the setup-passwords tool HOT 1
- ERROR: Setting [bootstrap.pass] does not exist in the keystore. HOT 1
- Unable to fetch mapping HOT 1
- Kibana is not starting
- Image at Docker Hub out of date? HOT 2
- sebp/elkx with TLS ? HOT 2
- Kibana doesn't show up HOT 3
- Missing elkx:530 release HOT 1
- Adding credentials... HOT 11
- Support for X-Pack version 6 HOT 24
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elkx-docker.