Open kilianc opened 9 years ago
It would be awesome if this works. This works:
$ mon "docker run -i ubuntu /bin/bash" --pidfile ubuntu.pid --mon-pidfile mon.pid
$ kill -TERM $(cat mon.pid)
But this isn't working:
$ mon "docker run -it -p 9200:9200 -p 9300:9300 digitalwonderland/elasticsearch" --pidfile elastic.pid --mon-pidfile mon.pid
$ kill -TERM $(cat mon.pid)
I think this may be related to a missing pipefail
option. I probably need to use bash -c -o pipefail "node server.js | rtail --id api-dev"
to make it work
Yes. In both cases the SIGTERM signal isn't handled. Nearly the same problem I have with docker.
related to #36
I have something like
"node server.js | rtail --id api-dev"
as mon command andSIGTERM
never gets to the node process.