From owner-freebsd-stable@FreeBSD.ORG Mon Sep 20 10:07:41 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9898E1065672 for ; Mon, 20 Sep 2010 10:07:41 +0000 (UTC) (envelope-from serguey-grigoriev@yandex.ru) Received: from forward5.mail.yandex.net (forward5.mail.yandex.net [77.88.46.21]) by mx1.freebsd.org (Postfix) with ESMTP id 4820A8FC1F for ; Mon, 20 Sep 2010 10:07:41 +0000 (UTC) Received: from web78.yandex.ru (web78.yandex.ru [77.88.47.203]) by forward5.mail.yandex.net (Yandex) with ESMTP id 7DE9C14D0D90; Mon, 20 Sep 2010 14:07:39 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1284977259; bh=y+8I4oBjMPP8K7Fh15WBpb7NKskPXTZRb53vVKBliQQ=; h=From:To:Cc:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=IwphFlQRZTOioPX0JdE8j8m+4zQmzLrMUL/Dp/quZmayRAC8OkjFULzsNfdxtc8am Ld6ZPOIUde26fUERLmKBN2PvWPHsZ/lDIb7y7ExJTNEASRw5s1Qz9AuXN5WDCseOCl 1BaRoMT4gXwMV46Vr9Vt74wrspxUM8Avp2GnVr7Y= Received: from localhost (localhost.localdomain [127.0.0.1]) by web78.yandex.ru (Yandex) with ESMTP id 786A63A0036; Mon, 20 Sep 2010 14:07:39 +0400 (MSD) X-Yandex-Spam: 0 X-Yandex-Front: web78.yandex.ru X-Yandex-TimeMark: 1284977259 Received: from netman.spbcity.net (netman.spbcity.net [77.244.18.5]) by mail.yandex.ru with HTTP; Mon, 20 Sep 2010 14:07:36 +0400 From: S.N.Grigoriev To: Erik Stian Tefre In-Reply-To: <4C972B3E.2050108@tefre.com> References: <4C7D01F7.4010003@zirakzigil.org> <265911284972128@web78.yandex.ru> <4C972B3E.2050108@tefre.com> MIME-Version: 1.0 Message-Id: <14311284977257@web78.yandex.ru> Date: Mon, 20 Sep 2010 14:07:36 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain Cc: freebsd-stable@freebsd.org Subject: Re: How to terminate a lot of jails correctly X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2010 10:07:41 -0000 20.09.10, 13:37, "Erik Stian Tefre" : > > I use a server (FreeBSD 8.1R amd64) with two dozens of jails configured. > > I've found out that only a few of them are terminated normally (via > > /etc/rc.shutdown) during the system shutdown. FreeBSD reports that > > 20sec interval has elapsed and simply kills all the jails that are not yet > > terminated. I would like to know in what way can I fix it using the system > > tools only (not ezjail, Qjail etc). > > Increasing rcshutdown_timeout in /etc/rc.conf may help. The default > value is set to 30 seconds in /etc/defaults/rc.conf. > Erik, thank you for your tip. The only drawback of that approche is absence of ability to calculate a timeout. Try and error only. -- Regards, S.Grigoriev.