Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 8BA112E0042 for ; Tue, 6 May 2008 06:09:12 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 83974-10 for ; Tue, 6 May 2008 06:09:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from ipmail01.adl6.internode.on.net (ipmail01.adl6.internode.on.net [203.16.214.146]) by developer.postgresql.org (Postfix) with ESMTP id CCE282E002E for ; Tue, 6 May 2008 06:09:05 -0300 (ADT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As8BALy6H0jLevdHiGdsb2JhbAAsgSeQJgEBAQ8gmVQ X-IronPort-AV: E=Sophos;i="4.27,442,1204464600"; d="scan'208";a="96573739" Received: from ppp247-71.static.internode.on.net (HELO DevBox.local) ([203.122.247.71]) by ipmail01.adl6.internode.on.net with ESMTP; 06 May 2008 18:38:59 +0930 Message-ID: <48202028.6040003@Sheeky.Biz> Date: Tue, 06 May 2008 18:38:56 +0930 From: Shane Ambler User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: arpit jain CC: pgsql-admin@postgresql.org Subject: Re: Postgresql Service Failed Error References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/37 X-Sequence-Number: 29121 arpit jain wrote: > Hii > > > I have installed postgresql-8.2.6 in /usr/local/postgresql/ directory. > I have also created the data dictionary in /var/lib/pgsql/data directory > using following commands: What OS? > /usr/local/postgresql/bin/initdb -D /var/lib/pgsql/data/ > > The owner of my var/lib/pgsql/data directory is globus Is this the same user that is running the postgresql service? check /etc/init.d/postgresql to see what username the service is being started as (usually postgres or pgsql) This user should be the only one that can access the data dir (apart from root) Bad data dir permissions will prevent postgresql from starting. > and owner of usr/local/postgresql/bin/initdb is root That's OK > I have also edited the following files in > /var/lib/pgsql/data/postgresql.conf by adding listen_addresses='*' and > /var/lib/pgsql/data/pg_hba.conf by adding > > host rftDatabase "globus" "140.221.8.31" 255.255.255.255 md5 > > > Now when I am trying to run /etc/init.d/postgresql restart : It gives me > following error: > > Stopping postgresql service: [FAILED] > Starting postgresql service: [FAILED] > Is postgres already running? are you running the postgresql restart as root? In your data dir you should find serverlog that should give more info - also try system or console logs -- Shane Ambler pgSQL (at) Sheeky (dot) Biz Get Sheeky @ http://Sheeky.Biz