[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-ports
Subject:    Re: postgresql startup script error
From:       Florent Thoumie <flz () xbsd ! org>
Date:       2006-04-28 9:06:04
Message-ID: ECCBFA59-B9CC-4A23-A104-132132F9502D () xbsd ! org
[Download RAW message or body]


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


_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic