Commit Graph

6 Commits

Author SHA1 Message Date
Sage Weil
1cd8076543 daemon-helper: optional kill an entire process group
Signed-off-by: Sage Weil <sage@inktank.com>
2014-06-30 13:35:53 -07:00
Sage Weil
fdebf40f34 daemon-helper: send arbitrary signals via stdin
Each byte written to stdin will be interpreted as a signal.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-08 10:39:26 -07:00
Sam Lang
c0f1ef7373 task/daemon-helper: Add nostdin option
Some daemons (smbd) will try to read from stdin and check if its a
socket, using that for sending/receiving messages.  If /dev/null is
used for stdin, the daemon aborts.  This patch adds a 'nostdin' option
to the daemon-helper so that the daemon can be started without /dev/null
as stdin.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2013-05-06 17:37:25 -07:00
Josh Durgin
3d3ba1ebb1 daemon-helper: detect the signal actually sent
I thought I fixed this when I implemented coverage collection, but I
guess it got lost in a rebase or something.
2011-10-04 12:17:19 -07:00
Josh Durgin
d09ae0b280 With coverage, use SIGTERM to make the daemons exit(0). 2011-06-10 11:24:26 -07:00
Tommi Virtanen
57f979f177 Refactor for modularity.
New style: run "./virtualenv/bin/teuthology -v interactive.yaml".
2011-06-03 14:47:44 -07:00