Re: Starting PostgreSQL 7.3.4 server with Webmin

From: "mathan" <mathan(at)hotpop(dot)com>
To: "Raigo" <Raigo77(at)solo(dot)delfi(dot)ee>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Starting PostgreSQL 7.3.4 server with Webmin
Date: 2003-08-21 07:19:22
Message-ID: 035401c367b4$90e9ee10$250110ac@MAMCO
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

> from command line (as root) I successfully did it with:
> /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data
>
> but when I run it with Webmin I get:
> Failed to start database server :
>
> "root" execution of the PostgreSQL server is not permitted.

To run postmaster from Webmin use "su postgres -c" before the command,
because use cant run the postmaster as "root"

It will be better to add "-i" to enable TCP/IP connections, "-S"
for silent mode (start in background without logging output). so use this
command in Webmin settings.

Command to start PostgreSQL:
su postgres -c "/usr/local/pgsql/bin/postmaster -i -S -D
/usr/local/pgsql/data"

> also, I would be glad to read what is the command for starting
> Postgres in bootup. can I use the same command?
>

For starting postmaster in bootup, you have to write rc script, For
MySQL this script comes with source code, but here you have to write this
script. But its not a good idea to start postgmaster in bootup

thanks
--mathan

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/2003

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Grant 2003-08-21 14:59:53 one-to-one
Previous Message Aarni Ruuhimäki 2003-08-21 05:06:24 Re: Starting PostgreSQL 7.3.4 server with Webmin