Re: start up and shut down script

From: Richard Huxton <dev(at)archonet(dot)com>
To: "surabhi(dot)ahuja" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: start up and shut down script
Date: 2006-11-03 10:58:45
Message-ID: 454B20E5.10206@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shane Ambler 2006-11-03 11:04:51 Re: new and old not available in rule subselects?
Previous Message Martijn van Oosterhout 2006-11-03 10:47:34 Re: Counting records in a PL/pgsql cursor