On Thu, 15 Apr 2010, John R Pierce wrote:
> this script is setting PGBIN, PGDATA, and PGLOG before running pg_ctl, so I
> am pretty sure its already in the target user. yes, indeed, SMF has a
> service property "method_context/user astring postgres" which specifies what
> user to run the start method as, so its looking like changing the user is
> done -before- running this script.
Yes, but those variables are used in the script, not used by the
server once it starts running, so they're not the same thing and
may not be a good template to work off of.
> what alternative methods would you suggest for getting LD_LIBRARY_PATH etc
> setup ?
Perhaps you need to export those variables:
export LD_LIBRARY_PATH
Kris Jurka