From owner-freebsd-current@FreeBSD.ORG Sat Jul 21 23:05:43 2007 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D19B216A41F for ; Sat, 21 Jul 2007 23:05:43 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [194.62.233.102]) by mx1.freebsd.org (Postfix) with ESMTP id 840AB13C4A5 for ; Sat, 21 Jul 2007 23:05:43 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from stat.sem.ipt.ru ([192.168.12.1] helo=ipt.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1ICO19-0009pO-12 for freebsd-current@FreeBSD.org; Sun, 22 Jul 2007 03:05:43 +0400 Received: from bsam by ipt.ru with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1ICO1L-0003vB-MT for freebsd-current@FreeBSD.org; Sun, 22 Jul 2007 03:05:55 +0400 To: freebsd-current@FreeBSD.org References: <88771431@srv.sem.ipt.ru> From: Boris Samorodov Date: Sun, 22 Jul 2007 03:05:55 +0400 In-Reply-To: <88771431@srv.sem.ipt.ru> (Boris Samorodov's message of "Sun\, 22 Jul 2007 00\:42\:00 +0400") Message-ID: <63817260@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Cc: Subject: Re: postgresql in a jail: manually starts but not while booting X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2007 23:05:43 -0000 On Sun, 22 Jul 2007 00:42:00 +0400 Boris Samorodov wrote: > I've got a recent amd64-current with postgresql in a jail. The > database master process starts from command line but not when > the host system is booted (and the jail is auto-started): > ----- > Jul 22 00:10:17 pg postgres[1134]: [2-1] FATAL: could not create shared memory segment: Function not implemented > Jul 22 00:10:17 pg postgres[1134]: [2-2] ποδςοβξοστι: Failed system call was shmget(key=5432001, size=39149568, 03600). > ----- OK, I found the culprit. Seems that man jail(8) may be polished a little. From man jail(8), section "Starting the Jail": ----- It is possible to have jails started at boot time. Please refer to the ``jail_*'' variables in rc.conf(5) for more information. ----- I propose to add the following note to man jail(8): ----- Note: those variables override sysctl values (both current and from /etc/sysctl.conf). ----- WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve