From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1889 Path: news.gmane.org!not-for-mail From: Mike Buland Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Run scripts Date: Fri, 4 Jul 2008 09:28:21 -0600 Organization: Geek Gene Message-ID: <200807040928.21815.mike@geekgene.com> References: <20080704152232.GJ11840@dusk.harfang.homelinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215185289 21337 80.91.229.12 (4 Jul 2008 15:28:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2008 15:28:09 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2124-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Jul 04 17:28:56 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 1KEnDT-0005RD-Ol for gcsg-supervision@gmane.org; Fri, 04 Jul 2008 17:28:55 +0200 Original-Received: (qmail 16495 invoked by uid 76); 4 Jul 2008 15:28:25 -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 16487 invoked from network); 4 Jul 2008 15:28:24 -0000 User-Agent: KMail/1.9.6 In-Reply-To: <20080704152232.GJ11840@dusk.harfang.homelinux.org> Content-Disposition: inline Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1889 Archived-At: Sure, I haven't looked at the one online, but I use this: #!/bin/bash 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. --Mike On Friday 04 July 2008 09:22:32 am Gilles Sadowski wrote: > Hello. > > Does anyone have a run script for "postgresql"? > > The script at > http://smarden.org/runit/runscripts.html > is quite outdated. > > Best, > Gilles