Date: Fri, 28 Apr 2006 10:06:04 +0100 From: Florent Thoumie <flz@xbsd.org> To: Brooks Davis <brooks@one-eyed-alien.net> Cc: Jiawei Ye <leafy7382@gmail.com>, freebsd ports <freebsd-ports@freebsd.org> Subject: Re: postgresql startup script error Message-ID: <ECCBFA59-B9CC-4A23-A104-132132F9502D@xbsd.org> In-Reply-To: <20060427162905.GA12971@odin.ac.hmc.edu> References: <c21e92e20604262335o75c134bas7db1ed23b076ca3b@mail.gmail.com> <20060427162905.GA12971@odin.ac.hmc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 27, 2006, at 5:29 PM, Brooks Davis wrote: > On Thu, Apr 27, 2006 at 02:35:58PM +0800, Jiawei Ye wrote: >> I am running postgresql-server-81 from ports on -current, the rcNG >> script seem to be errornous. During boot, I get >> >> exec: /etc/rc//bin/pg_ctl: not found >> >> But starting manually works >> >> /usr/local/etc/rc.d/010.pgsql.sh restart >> pg_ctl: PID file "/usr/local/pgsql/data/postmaster.pid" does not >> exist >> Is postmaster running? >> starting postmaster anyway > > There was a recent change to /etc/rc.subr to set the variable $prefix > based on the value of $command with a fallback to the path to the the > script. It looks like that may have blown up intrestingly in this > script. Indeed, I could have used another name for the prefix variable, but it should set ${prefix} to the right value anyway. Can you try moving the load_rc_config line after the command line in the rc.d script? -- Florent Thoumie flz@FreeBSD.org FreeBSD Committer
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ECCBFA59-B9CC-4A23-A104-132132F9502D>