Problem stopping a program

Brooks Davis brooks at one-eyed-alien.net
Thu Mar 30 04:23:44 UTC 2006


On Wed, Mar 29, 2006 at 09:15:58PM -0600, Paul Schmehl wrote:
> --On March 30, 2006 3:00:53 AM +0200 Danny Pansters <danny at ricin.com> wrote:
> >>
> >>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) ?
> >
> That seems a bit of overkill.  I'd have to make pkill a RUN_DEPENDS, 
> forcing the user to install it just to kill the process.  As it turns out, 
> it appears that TERM won't kill the process if it's been running for a 
> while, but KILL will.

One dep with a 7K of source tarball doesn't seem too serious,
particularly since it wouldn't actually be a depend on any recent system
since pkill is in the base.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060330/b3a03a3e/attachment.pgp


More information about the freebsd-ports mailing list