From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1890 Path: news.gmane.org!not-for-mail From: Gilles Sadowski Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Run scripts Date: Fri, 4 Jul 2008 18:38:17 +0200 Message-ID: <20080704163817.GK11840@dusk.harfang.homelinux.org> References: <20080704152232.GJ11840@dusk.harfang.homelinux.org> <200807040928.21815.mike@geekgene.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215189547 3836 80.91.229.12 (4 Jul 2008 16:39:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2008 16:39:07 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2125-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Jul 04 18:39:54 2008 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1KEoJk-0008Qb-HX for gcsg-supervision@gmane.org; Fri, 04 Jul 2008 18:39:28 +0200 Original-Received: (qmail 25956 invoked by uid 76); 4 Jul 2008 16:38:56 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 25947 invoked from network); 4 Jul 2008 16:38:56 -0000 Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <200807040928.21815.mike@geekgene.com> X-Operating-System: Tiny Tux X-PGP-Key-Fingerprint: 53B9 972E C2E6 B93C BEAD 7092 09E6 AF46 51D0 5641 User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-DCC-scarlet.be-Metrics: sif 20001; Body=1 Fuz1=1 Fuz2=1 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1890 Archived-At: Hi. > exec chpst -u postgres /usr/bin/postmaster \ > -D /srv/pgsql/data 2>&1 > > Works pretty well, you should change /srv/pgsql/data to whatever the path to > your cluster is, and of course, use whatever your postgres user is. Well, I've just installed postgresql 8.3 and I was fairly lost because I was expected more automatic configuration to take place (I use Debian). As far as I can tell, the install just created an empty /var/lib/postgresql directory. In the end browsing through the documentation on the postgresql web site, I tried "initdb". And there it was. The second thing is that all the programs (like "postmaster") are not in /usr/bin but in /usr/lib/postgresql//bin. Again that's not indicated in the Debian readme file. But the usual startup script (in /etc/init.d) is quite complex, so I guess that for "normal" people, it might have performed everything necessary (?) at first launch. Anyways, now it runs ;-) Thanks, Gilles