Skip site navigation (1) Skip section navigation (2)

Re: postgresql-[any version] from FreeBSD ports - startup problems after crash

From: "Larry Rosenman" <ler(at)lerctr(dot)org>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>,"Jim Nasby" <jnasby(at)pervasive(dot)com>
Cc: "'Ruslan A Dautkhanov'" <rusland(at)scn(dot)ru>,<pgsql-bugs(at)postgresql(dot)org>
Subject: Re: postgresql-[any version] from FreeBSD ports - startup problems after crash
Date: 2006-05-15 19:20:51
Message-ID: 00d001c67854$ade1cc00$aa0610ac@aus.pervasive.com (view raw or flat)
Thread:
Lists: pgsql-bugs
Tom Lane wrote:
> "Jim C. Nasby" <jnasby(at)pervasive(dot)com> writes:
>> Except that the shell that's running su would be root, not pgsql, at
>> least in the case of FreeBSD. The guts of the current port's rc.d
>> file are:
> 
>> su -l ${postgresql_user} -c "exec ${command} ${command_args}
>> ${rc_arg}" 
> 
> Yeah, but what's the ${command} ?
> 
> If it's pg_ctl then all he's missing is the recent change to check
> getppid.  If it's execing postmaster directly then maybe we need
> another theory.

It's pg_ctl....

command=${prefix}/bin/pg_ctl


-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 512-248-2683                 E-Mail: ler(at)lerctr(dot)org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893


In response to

Responses

pgsql-bugs by date

Next:From: Paul ForgeyDate: 2006-05-15 19:27:54
Subject: Re: BUG #2436: cannot --enable-thread-safety on -lpthread host
Previous:From: Tom LaneDate: 2006-05-15 19:12:11
Subject: Re: postgresql-[any version] from FreeBSD ports - startup problems after crash

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group