From: | Gregory Stone <guomo(at)yahoo(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | forking postmaster on my own - not as pguser |
Date: | 2004-01-05 18:17:19 |
Message-ID: | 20040105181719.82110.qmail@web14001.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I have a need to run postgres only when my Java application is running.
Basically I want to do a Runtime.exec() from java in order to start up the
DB server. Is there any reason why this should present a problem? My
init.d script is su-ing to the pguser before launching pg_ctl with all the
various params. Can I just emulate this, but not su to the pguser account
but use the exisitng user logon? Also, besides standard unix safety rules
about limited access accounts and all, is there any reason I HAVE to be
the pguser to start up postgres?
Thanks,
Gregory
=====
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Gregory Stone | "Suppose you were an idiot, and suppose you were
guomo(at)yahoo(dot)com | a member of congress; but I repeat myself."
| - Mark Twain
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003
From | Date | Subject | |
---|---|---|---|
Next Message | Nigel J. Andrews | 2004-01-05 19:00:10 | Re: forking postmaster on my own - not as pguser |
Previous Message | tatyana.krasnokutsky | 2004-01-05 17:53:04 | start/stop a database |