Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UqDj2-0001Ha-0X for pgsql-admin@arkaria.postgresql.org; Sat, 22 Jun 2013 02:38:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UqDj1-0005mx-Cm for pgsql-admin@arkaria.postgresql.org; Sat, 22 Jun 2013 02:38:51 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UqDj0-0005mq-3c for pgsql-admin@postgresql.org; Sat, 22 Jun 2013 02:38:50 +0000 Received: from qmta13.emeryville.ca.mail.comcast.net ([2001:558:fe2d:44:76:96:27:243]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UqDix-0007ze-EZ for pgsql-admin@postgresql.org; Sat, 22 Jun 2013 02:38:49 +0000 Received: from omta22.emeryville.ca.mail.comcast.net ([76.96.30.89]) by qmta13.emeryville.ca.mail.comcast.net with comcast id rEbo1l0091vN32cADEek8k; Sat, 22 Jun 2013 02:38:44 +0000 Received: from innana.dareclan.net ([76.102.69.42]) by omta22.emeryville.ca.mail.comcast.net with comcast id rEej1l00J0ujHa48iEekfR; Sat, 22 Jun 2013 02:38:44 +0000 Message-ID: <51C50E33.1020109@comcast.net> Date: Fri, 21 Jun 2013 19:38:43 -0700 From: Tony Dare User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Ubuntu Precise and auto startup of pg databases Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1371868724; bh=GAQIrB7T4C/EhXezhLup7uWTjXcPB8asfdgem5AgRmI=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=MV2CPysXBEPqgvqthh53D2uFxoXGxBCpPxu6tIA06q8QXf5o5KSa80O/ReTMW82Rw 8tQo8D2LnR2f6ocN0j58oVL43DqVYlIUHMDnKm4zRSOqXWMrBo/TbGsEPZcWuiZZwn aZHWM1K7CSaAeNMzNg3gfTaj2lMswfJL/A+4w/KYFkIVkc0B2UfK3W1pgziREaAxGK tCE6XD/uiRSO+BSynOhEUsLWydW6zwBPyMY6j0X1Jn1xP3ay0OwHIE12X03ZzhR7LD 9XSXmpuqt+70q0crqwk1OezGgz5ANLszK5gjcjOE0zkf2s7FLslojeqaNGkWwTqwlP oCD4UIaZNUoUA== X-Pg-Spam-Score: -0.6 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org I don't know if anyone else has had this problem but i found that the /etc/init.d/postgresql script simply would not start up my databases after a reboot. though it worked fine just after creating the database and getting all the config files in the expected places. Was able to down and up the dbs all day long, if I wished. Then I rebooted and there was no databases started. Executing /etc/init.d/postgresql start 9.2 resulted in "No database clusters on the system" or suchlike. I tracked the problem down to the script calling on pg_lsclusters, which in turn looks for a /var/run/postgresql directory. All well and good, except that /var/run/postgresql is on a tempfs filesystem and is wiped out after a reboot. (Q: should that even be on a tempfs?) The start command in /etc/init.d/postgresql does this check and then executes the function that will/can create the /var/run/postgresql if the aforementioned check passes...which it won't. So instead you get a message that there are no database clusters on the server. It's a fairly new install of 12.04 and I was wondering if subsequent updates take care of it or am I going to have to hack the start/stop script and maintain that over package updates? Ubuntu 12.04 postgresql 9.2.0.4 x86_64 2 CPUs Thanks Tony Dare -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin