Date: Thu, 30 Mar 2006 03:00:53 +0200 From: Danny Pansters <danny@ricin.com> To: Paul Schmehl <pauls@utdallas.edu> Cc: freebsd-ports@freebsd.org Subject: Re: Problem stopping a program Message-ID: <200603300300.53523.danny@ricin.com> In-Reply-To: <6F8EC8DCFAC4D47258FEF35B@Paul-Schmehls-Computer.local> References: <6F8EC8DCFAC4D47258FEF35B@Paul-Schmehls-Computer.local>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 29 March 2006 04:31, Paul Schmehl wrote: > I'm working on a new port that uses a tcl script in daemon mode. I've > written an rc.d script to start and stop the daemon, and I'm having a > problem stopping the daemon. If I do it immediately, it stops just fine, > but if I leave the daemon running for a while, I cannot. (The daemon > spawns two child processes after it's started.) > > Here's an example: /usr/local/etc/rc.d/sguild.sh restart > Stopping sguild > Waiting for PIDS: 4554 4558 4559, 4554 4558 4559, 4554 4558 4559, 4554 4558 > 4559, 4554 4558 4559, 4554 4558 4559, 4554 4558 4559, 4554 4558 4559, 4554 > 4558 4559, 4554 4558 4559, 4554 4558 4559, 4554 4558 4559, 4554 4558 4559, > 4554 4558 4559, > > This will go on indefinitely. If I kill the process and then try > restarting again, the child processes are gone, but the parent process is > not. Try pkill/pgrep (p=parent) ? HTH, Dan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603300300.53523.danny>