X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 84EA8D1B503 for ; Wed, 23 Jun 2004 03:43:05 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 00291-10 for ; Wed, 23 Jun 2004 06:42:57 +0000 (GMT) Received: from mammoth.utopiasystems.net (meridian1.utopiasystems.net [66.150.45.40]) by svr1.postgresql.org (Postfix) with ESMTP id D4753D1B1D9 for ; Wed, 23 Jun 2004 03:42:54 -0300 (ADT) Received: from [10.152.145.224] ([12.125.88.10]) by mammoth.utopiasystems.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 23 Jun 2004 02:40:31 -0400 User-Agent: Microsoft-Entourage/10.1.4.030702.0 Date: Tue, 22 Jun 2004 23:42:52 -0700 Subject: Re: PostgreSQL With Slackware From: Steve Lane To: Janio Rosa da Silva , Message-ID: In-Reply-To: <001101c458db$f9aec880$0200a8c0@pc02> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-OriginalArrivalTime: 23 Jun 2004 06:40:32.0171 (UTC) FILETIME=[FB1CC7B0:01C458EC] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/298 X-Sequence-Number: 13958 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" > Date: Wed, 23 Jun 2004 01:38:44 -0300 > To: > 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 >