X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E870D52906 for ; Fri, 10 Jun 2005 10:48:16 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 29980-09 for ; Fri, 10 Jun 2005 13:48:15 +0000 (GMT) Received: from mail.herbers.ca (unknown [64.56.146.199]) by svr1.postgresql.org (Postfix) with ESMTP id 89C5C528FF for ; Fri, 10 Jun 2005 10:48:15 -0300 (ADT) Received: from localhost (unknown [127.0.0.1]) by mail.herbers.ca (herbers) with ESMTP id 651711EE1AE for ; Fri, 10 Jun 2005 07:48:17 -0600 (MDT) Received: from mail.herbers.ca ([127.0.0.1]) by localhost (trusty.herbers.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32325-01 for ; Fri, 10 Jun 2005 07:48:15 -0600 (MDT) Received: from [10.1.2.50] (unknown [10.1.2.50]) by mail.herbers.ca (herbers) with ESMTP id 3645B1EE1A8 for ; Fri, 10 Jun 2005 07:48:15 -0600 (MDT) Message-ID: <42A99A1F.6030408@herbers.ca> Date: Fri, 10 Jun 2005 07:48:15 -0600 From: James Herbers User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: PostgreSQL default data location References: <42A8AC56.5090808@herbers.ca> In-Reply-To: <42A8AC56.5090808@herbers.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at herbers.ca X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.038 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200506/64 X-Sequence-Number: 17819 Found the problem, It is a problem with the /etc/init.d/postgresql script. On line 31 the script grabs the defaults from the /etc/sysconfig/postgresql file which is where they should be. But then on line 41-42 it goes to set these defaults by using the file /etc/sysconfig/postgresql.d/${NAME} which would be the name of the script running, fine if the script is /etc/init.d/postgresql. In the case of going to run level 3 the file name is S85postgresql (a link to /etc/init.d/postgresql)! Well there is no file with defaults named /etc/sysconfig/postgresql.d/S85postgresql !! Lines 40- 42 of this script should match the defaults from line 31 and not reference the the name of the script being run. It should read: # Override defaults from /etc/sysconfig/postgresql if file is present [ -f /etc/sysconfig/postgresql ] && \ . /etc/sysconfig/postgresql NOT as it does: # Override defaults from /etc/sysconfig/postgresql if file is present [ -f /etc/sysconfig/postgresql.d/${NAME} ] && \ . /etc/sysconfig/postgresql.d/${NAME} James Herbers