Problem stopping a program
Paul Schmehl
pauls at utdallas.edu
Thu Mar 30 03:17:19 UTC 2006
--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.
I've notified the developer.
Paul Schmehl (pauls at utdallas.edu)
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/
More information about the freebsd-ports
mailing list