Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jul 2007 03:05:55 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        freebsd-current@FreeBSD.org
Subject:   Re: postgresql in a jail: manually starts but not while booting
Message-ID:  <63817260@srv.sem.ipt.ru>
In-Reply-To: <88771431@srv.sem.ipt.ru> (Boris Samorodov's message of "Sun\, 22 Jul 2007 00\:42\:00 %2B0400")
References:  <88771431@srv.sem.ipt.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?63817260>