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

From surabhi.ahuja
Subject start up and shut down script
Date
Msg-id 8626C1B7EB748940BCDD7596134632BE3986A5@jal.iiitb.ac.in
Whole thread Raw
Responses Re: start up and shut down script  (Martijn van Oosterhout <kleptog@svana.org>)
Re: start up and shut down script  (Richard Huxton <dev@archonet.com>)
List 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
 

pgsql-general by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: Does anyone have a compiled dblink_tds for Redhat EL 4.x?
Next
From: Oleg Bartunov
Date:
Subject: Re: [HACKERS] Index greater than 8k