start up and shut down script

From: "surabhi(dot)ahuja" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>
To: <pgsql-general(at)postgresql(dot)org>
Subject: start up and shut down script
Date: 2006-11-03 08:10:35
Message-ID: 8626C1B7EB748940BCDD7596134632BE3986A5@jal.iiitb.ac.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

for a diffrent OS like Enterprise Suse Linux 10 the above script will not work,
because the file $INITD/functions is not there in case of Suse Linux installation

Similarly . /etc/sysconfig/network
is not a file but a directory in Suse Linux 10.


thanks
surabhi

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2006-11-03 08:26:10 Re: Does anyone have a compiled dblink_tds for Redhat EL 4.x?
Previous Message A. Kretschmer 2006-11-03 06:17:45 Re: Geometry