X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id C62A7D1B89C for ; Thu, 21 Aug 2003 04:21:38 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 02483-05 for ; Thu, 21 Aug 2003 04:21:29 -0300 (ADT) Received: from snickers.hotpop.com (snickers.hotpop.com [204.57.55.49]) by svr1.postgresql.org (Postfix) with ESMTP id 85740D1CD08 for ; Thu, 21 Aug 2003 04:21:27 -0300 (ADT) Received: from hotpop.com (kubrick.hotpop.com [204.57.55.16]) by snickers.hotpop.com (Postfix) with SMTP id 1989175334 for ; Thu, 21 Aug 2003 07:20:58 +0000 (UTC) Received: from MAMCO (unknown [203.129.254.139]) by smtp-1.hotpop.com (Postfix) with SMTP id 4A6531A01BB; Thu, 21 Aug 2003 07:20:51 +0000 (UTC) Message-ID: <036f01c367b4$c36dc0f0$250110ac@MAMCO> From: "mathan" To: "Raigo" , References: <80df3db1.0308200241.27f4ce5a@posting.google.com> Subject: Re: Starting PostgreSQL 7.3.4 with Webmin on Mandrake 9.1 Date: Thu, 21 Aug 2003 12:50:51 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/246 X-Sequence-Number: 9967 > 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