From owner-freebsd-questions@FreeBSD.ORG Sat Jan 21 13:19:16 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F2351065676 for ; Sat, 21 Jan 2012 13:19:16 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward16.mail.yandex.net (forward16.mail.yandex.net [IPv6:2a02:6b8:0:1402::1]) by mx1.freebsd.org (Postfix) with ESMTP id 6C2B08FC16 for ; Sat, 21 Jan 2012 13:19:15 +0000 (UTC) Received: from smtp17.mail.yandex.net (smtp17.mail.yandex.net [95.108.252.17]) by forward16.mail.yandex.net (Yandex) with ESMTP id 91779D21F21; Sat, 21 Jan 2012 17:19:13 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1327151953; bh=BZn3vz9aWTAPj8UWI7Vkg7ZjUD9p6d9NN7MWqgXyWjI=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=QQOGF3KJeOEab2Lp1g4MtUP7NbgG272E0EaMIwI1NPUgFdtDRQgiW25Eqrw628Lxk dvUvMZ6A9hltt50Tp1KvZUNQ8JZu5UTcmqLv4G6GdmD7Nr2HhiwDY2AMVbml5O8DUa S8gTtF+L/FC/NX2U7SLxe82V8Mp0qHAX7c6DpeGc= Received: from smtp17.mail.yandex.net (localhost [127.0.0.1]) by smtp17.mail.yandex.net (Yandex) with ESMTP id 6B0291900199; Sat, 21 Jan 2012 17:19:13 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1327151953; bh=BZn3vz9aWTAPj8UWI7Vkg7ZjUD9p6d9NN7MWqgXyWjI=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=QQOGF3KJeOEab2Lp1g4MtUP7NbgG272E0EaMIwI1NPUgFdtDRQgiW25Eqrw628Lxk dvUvMZ6A9hltt50Tp1KvZUNQ8JZu5UTcmqLv4G6GdmD7Nr2HhiwDY2AMVbml5O8DUa S8gTtF+L/FC/NX2U7SLxe82V8Mp0qHAX7c6DpeGc= Received: from unknown (unknown [176.8.25.138]) by smtp17.mail.yandex.net (nwsmtp/Yandex) with ESMTP id JC8OKGGb-JD8WfSKC; Sat, 21 Jan 2012 17:19:13 +0400 X-Yandex-Spam: 1 Date: Sat, 21 Jan 2012 15:19:10 +0200 From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?windows-1251?B?188gyu7t/Oru4iwgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <909294609.20120121151910@yandex.ru> To: Frank Shute In-Reply-To: <20120121092459.GB8988@orange.esperance-linux.co.uk> References: <1712857962.20120120232421@yandex.ru> <20120121092459.GB8988@orange.esperance-linux.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re[2]: problem to kill -KILL process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jan 2012 13:19:16 -0000 Здравствуйте, Frank. Вы писали 21 января 2012 г., 11:24:59: FS> On Fri, Jan 20, 2012 at 11:24:21PM +0200, ??????? ??????? wrote: >> >> Hi >> >> # ps ax|grep rad >> 45471 ?? T> 26473 1 S+ 0:00.00 grep rad >> flux# date >> Fri Jan 20 23:20:28 UTC 2012 >> flux# kill -KILL 45471 >> flux# date >> Fri Jan 20 23:20:41 UTC 2012 >> flux# kill -KILL 45471 >> flux# date >> Fri Jan 20 23:20:54 UTC 2012 >> flux# kill -KILL 45471 >> >> >> top >> 9 root 16 - 0K 8K syncer 2 7:12 0.00% syncer >> 45471 freeradius 20 -20 311M 283M STOP 0 3:38 0.00% {radiusd} >> 49114 root 21 0 10460K 4240K select 0 2:43 0.00% zebra >> >> How to kill process without reboot? >> FS> Doesn't radius have a script in /usr/local/etc/rc.d? FS> If so use that to stop it rather than KILLing it. E.g: FS> # /usr/local/etc/rc.d/radiusd stop despite on it uses standart rc.subr, which says: # stop if ${pidfile} # rc_pid=$(check_pidfile $pidfile $command) # else # rc_pid=$(check_process $command) # kill $sig_stop $rc_pid # wait_for_pids $rc_pid # ($sig_stop defaults to TERM.) in other words: kill -TERM 45471 in my case FS> or something like that. man kill ...... Some of the more commonly used signals: ...... 9 KILL (non-catchable, non-ignorable kill) Standart tool do not do its job. It can not stop/kill processes. -- С уважением, Коньков mailto:kes-kes@yandex.ru