pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Lane <slane@moyergroup.com>
To: Janio Rosa da Silva <janio_2003@yahoo.com.br>
To: pgsql-admin@postgresql.org
Subject: Re: PostgreSQL With Slackware
Date: Tue, 22 Jun 2004 23:42:52 -0700
Message-ID: <BCFE747C.14BA0%slane@moyergroup.com> (raw)
In-Reply-To: <001101c458db$f9aec880$0200a8c0@pc02>

Janio:

My experience of various Linux distributions is not very wide. But I'd be
surprised if slackware didn't have some variant of the su -c command, which
is what I generally use to start postgres from rc.* scripts.

A line like

su postgres -c "/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data &"

usually does it for me.

Sorry if this is obvious and I'm missing the point.

-- sgl

> From: "Janio Rosa da Silva" <janio_2003@yahoo.com.br>
> Date: Wed, 23 Jun 2004 01:38:44 -0300
> To: <pgsql-admin@postgresql.org>
> Subject: [ADMIN] PostgreSQL With Slackware
> 
> 
> I am looking for a way to start PostgreSQL when the computer is turned
> on. Any ideas?
> 
> I am using Slackware 9.1 and PostgreSQL 7.4.2;
> 
> I was made a rc.postgresql script file. And I called for it from rc.local.
> 
> But, I thing when the slackware is starting, the commands in script file are
> executting under root. But the pg_ctl or postmaster should be executed under
> the postgres user.
> 
> Who can I start the postgresql server when the slackware is turned on?
> 
> thanks,
> 
> Janio
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
>              http://archives.postgresql.org
> 




view thread (4+ messages)  latest in thread

Message-ID: <BCFE747C.14BA0%slane@moyergroup.com>
Permalink:  ../BCFE747C.14BA0%25slane@moyergroup.com/
Also on:    postgresql.org/message-id/BCFE747C.14BA0%slane@moyergroup.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: slane@moyergroup.com, janio_2003@yahoo.com.br
  Subject: Re: PostgreSQL With Slackware
  In-Reply-To: <BCFE747C.14BA0%slane@moyergroup.com>
  References: <001101c458db$f9aec880$0200a8c0@pc02> <BCFE747C.14BA0%slane@moyergroup.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox