Ryan Mahoney wrote:
> Hey all, I copied the pg_ctl script and placed it in my /etc/rc.d/init.d/
> directory and renamed it 'postgres'. I then made all the necessary symbolic
> links. When my machine boots up however, pgsql does not start up because it
> cannot be started by root. I have created the 'postgres' user and data
> directories. I can start PG manually just fine. Can someone post or mail a
> working startup script/recommend any changes to pg_ctl? Thanks!
>
> Ryan Mahoney
> ryan(at)paymentalliance(dot)net
You might try this, it was taken from the postgresql-6.5.3-6 rpm: