Re: PostgreSQL With Slackware

From: Steve Lane <slane(at)moyergroup(dot)com>
To: Janio Rosa da Silva <janio_2003(at)yahoo(dot)com(dot)br>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: PostgreSQL With Slackware
Date: 2004-06-23 06:42:52
Message-ID: BCFE747C.14BA0%slane@moyergroup.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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(at)yahoo(dot)com(dot)br>
> Date: Wed, 23 Jun 2004 01:38:44 -0300
> To: <pgsql-admin(at)postgresql(dot)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
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Grega Bremec 2004-06-23 06:53:01 Re: PostgreSQL With Slackware
Previous Message Janio Rosa da Silva 2004-06-23 04:38:44 PostgreSQL With Slackware