From: mathan <mathan@hotpop.com>
To: Raigo <Raigo77@solo.delfi.ee>
To: pgsql-admin@postgresql.org
Subject: Re: Starting PostgreSQL 7.3.4 with Webmin on Mandrake 9.1
Date: Thu, 21 Aug 2003 12:50:51 +0530
Message-ID: <036f01c367b4$c36dc0f0$250110ac@MAMCO> (raw)
References: <80df3db1.0308200241.27f4ce5a@posting.google.com>
> 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
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: mathan@hotpop.com, Raigo77@solo.delfi.ee
Subject: Re: Starting PostgreSQL 7.3.4 with Webmin on Mandrake 9.1
In-Reply-To: <036f01c367b4$c36dc0f0$250110ac@MAMCO>
References: <80df3db1.0308200241.27f4ce5a@posting.google.com> <036f01c367b4$c36dc0f0$250110ac@MAMCO>
* 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