pls help me
i have a Linux redhat 9 machine
and i have installed the POstgres 7.4.5 using the
the problem heppens when i want the postgres to start
automatically when my server is booted
i have written a shell script in rc.local for doing
this which looks as shown below
my applications like jonas are stared as User : root
i login as root which starts my applicatios
but as postgres has to be started only as user :
shell scripts stops at the command su postgres and
does not execute further.
i searched for help and some suggestions were
using chkconfig --add postgresql
when i did that it says error reading info on
postgresql service no such file or directory
i guess this is bcos postgres is not installed as a
so this didn't help
pls help me in achieving this .
#export JONAS_ROOT PATH JAVA_HOME TOMCAT_HOME
export CLASSPATH PATH JAVA_HOME CATALINA_HOME
echo 'set java home .........'
echo 'starting postgres.....'
(su postgres ; postmaster)
echo 'started postgres.....'
echo 'starting jonas.....'
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
pgsql-admin by date
|Next:||From: Devrim GUNDUZ||Date: 2004-10-21 06:22:04|
|Subject: Re: Linux not starting postgres automatically|
|Previous:||From: Nikhil Parva||Date: 2004-10-21 05:56:22|