surabhi.ahuja wrote:
>
> I am using PostgreSQL 8.0.0.
>
> i have noted the following lines in the script to start or shut down
> postmaster.
> Can you please let me know why they are needed
>
> if [ "`uname`" = "Linux" ]; then
> INITD=/etc/rc.d/init.d
> . $INITD/functions
> # Get config.
> . /etc/sysconfig/network
> fi
> and
>
> if [ "`uname`" = "Linux" ]; then
> [ "${NETWORKING}" = "no" ] && exit 0
> fi
>
> who will define $NETWORKING ?
>
> are these calls OS specific , for instance they are for red hat
Yes - this looks like a Red Hat script. It's certainly not the one that
ships with the source distribution.
I believe $NETWORKING is defined in $INITD/functions and indicates that
you at runlevel 3 or above (so not in single-user recovery mode or
anything odd like that).
Oh, and you shouldn't be running 8.0.0 - upgrade to 8.0.9 as soon as is
practical. There are many bugfixes between the two versions.
--
Richard Huxton
Archonet Ltd