postgresql startup script error

Florent Thoumie flz at xbsd.org
Fri Apr 28 09:06:29 UTC 2006


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 at FreeBSD.org
FreeBSD Committer




More information about the freebsd-ports mailing list