[Buildbot-devel] Master shutting down when slave detaches?
Dan Kegel
dank at kegel.com
Thu Dec 27 17:30:18 UTC 2012
On Thu, Dec 27, 2012 at 6:59 AM, Dustin J. Mitchell <dustin at v.igoro.us> wrote:
> Is there some kernel-level debugging tool that could tell you about
> who's sending signals? That's pretty weird..
I used systemtap to monitor who was sending the signal:
wget http://kegel.com/linux/ubuntu-debugging-kernel.sh.txt
sh ubuntu-debugging-kernel.sh.txt
sudo apt-get install systemtap
wget http://sourceware.org/systemtap/examples/process/sigmon.stp
ps augxw | grep twistd
sudo stap -x 5314 sigmon.stp SIGTERM
then triggered a build. And the culprit was...
SPID SNAME RPID RNAME SIGNUM SIGNAME
1 init 5314 twistd 15 SIGTERM
... init, just as you suspected earlier.
Why would upstart do that? Well, to get it to start automatically, I had
start on (started network-interface or started network-manager or
started networking)
stop on (stopping network-interface or stopping network-manager or
stopping networking)
And lxc certainly is starting and stopping network interfaces.
So I guess I have to be more careful where I point that gun.
Thanks for the nudge!
- Dan
More information about the devel
mailing list