Re: start up and shut down script - Mailing list pgsql-general

From Richard Huxton
Subject Re: start up and shut down script
Date
Msg-id 454B20E5.10206@archonet.com
Whole thread Raw
In response to start up and shut down script  ("surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in>)
Responses Re: start up and shut down script
List pgsql-general
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

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Counting records in a PL/pgsql cursor
Next
From: Shane Ambler
Date:
Subject: Re: new and old not available in rule subselects?