NetBSD Problem Report #45403

From root@steel.labma.ru  Mon Sep 26 11:19:17 2011
Return-Path: <root@steel.labma.ru>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 01F8463C7BD
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 26 Sep 2011 11:19:16 +0000 (UTC)
Message-Id: <20110926100354.DC4278703C@steel.labma.ru>
Date: Mon, 26 Sep 2011 14:03:54 +0400 (MSD)
From: kab00m@steel.labma.ru
Reply-To: kab00m@steel.labma.ru
To: gnats-bugs@gnats.NetBSD.org
Subject: postgresql startup script remove pgsql_home from rc.conf
X-Send-Pr-Version: 3.95

>Number:         45403
>Category:       pkg
>Synopsis:       postgresql startup script remove pgsql_home from rc.conf
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    adam
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 26 11:20:01 +0000 2011
>Closed-Date:    Tue Sep 27 07:47:44 +0000 2011
>Last-Modified:  Tue Sep 27 07:47:44 +0000 2011
>Originator:     Dima Veselov
>Release:        NetBSD 5.1_STABLE
>Organization:
	LMA
>Environment:
System: NetBSD steel.labma.ru 5.1_STABLE NetBSD 5.1_STABLE (Georn) #0: Tue Jun 21 07:57:59 MSD 2011 toor@:/usr/src/sys/arch/amd64/compile/Georn amd64
Architecture: x86_64
Machine: amd64
>Description:
	Stock /etc/rc.d/pgsql in pkgsrc overwrite rc.conf's pgsql_home to default
	value, when ran at startup.
	However, it is correctly set if pgsql is restarted from root shell.
	Noticed on many instances, I can't understand how it comes.
>How-To-Repeat:
	Stock installed postgresql, set pgsql_home to something else in /etc/rc.conf,
	move /usr/pkg/share/examples/pgsql to /etc/rc.d, restart the sytem.
>Fix:
	Comment pgsql_home="/usr/pkg/pgsql" in /etc/rc.d/pgsql

>Release-Note:

>Audit-Trail:
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45403: postgresql startup script remove pgsql_home from
 rc.conf
Date: Mon, 26 Sep 2011 13:49:46 +0200

 On Mon, Sep 26, 2011 at 11:20:01AM +0000, kab00m@steel.labma.ru wrote:
 > 	Stock /etc/rc.d/pgsql in pkgsrc overwrite rc.conf's pgsql_home to default
 > 	value, when ran at startup.

 Which version of postgresql-server are you using? I have pgsql_home set
 in rc.conf and it certainly works here.

 Joerg

Responsible-Changed-From-To: pkg-manager->adam
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 26 Sep 2011 12:36:06 +0000
Responsible-Changed-Why:
Please take a look, Adam. Thanks!


From: "Adam Ciarcinski" <adam@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45403 CVS commit: pkgsrc/databases/postgresql90-server/files
Date: Tue, 27 Sep 2011 07:24:47 +0000

 Module Name:	pkgsrc
 Committed By:	adam
 Date:		Tue Sep 27 07:24:46 UTC 2011

 Modified Files:
 	pkgsrc/databases/postgresql90-server/files: pgsql.sh

 Log Message:
 Fix for PR#45403


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/databases/postgresql90-server/files/pgsql.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Adam Ciarcinski" <adam@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45403 CVS commit: pkgsrc/databases/postgresql91-server/files
Date: Tue, 27 Sep 2011 07:24:54 +0000

 Module Name:	pkgsrc
 Committed By:	adam
 Date:		Tue Sep 27 07:24:54 UTC 2011

 Modified Files:
 	pkgsrc/databases/postgresql91-server/files: pgsql.sh

 Log Message:
 Fix for PR#45403


 To generate a diff of this commit:
 cvs rdiff -u -r1.1.1.1 -r1.2 \
     pkgsrc/databases/postgresql91-server/files/pgsql.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Adam Ciarcinski" <adam@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45403 CVS commit: pkgsrc/databases/postgresql84-server/files
Date: Tue, 27 Sep 2011 07:25:05 +0000

 Module Name:	pkgsrc
 Committed By:	adam
 Date:		Tue Sep 27 07:25:05 UTC 2011

 Modified Files:
 	pkgsrc/databases/postgresql84-server/files: pgsql.sh

 Log Message:
 Fix for PR#45403


 To generate a diff of this commit:
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/databases/postgresql84-server/files/pgsql.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Adam Ciarcinski" <adam@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45403 CVS commit: pkgsrc/databases/postgresql83-server/files
Date: Tue, 27 Sep 2011 07:26:01 +0000

 Module Name:	pkgsrc
 Committed By:	adam
 Date:		Tue Sep 27 07:26:01 UTC 2011

 Modified Files:
 	pkgsrc/databases/postgresql83-server/files: pgsql.sh

 Log Message:
 Fix for PR#45403


 To generate a diff of this commit:
 cvs rdiff -u -r1.5 -r1.6 pkgsrc/databases/postgresql83-server/files/pgsql.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: adam@NetBSD.org
State-Changed-When: Tue, 27 Sep 2011 07:47:44 +0000
State-Changed-Why:
This has been fixed for all PostgreSQL packages. Thanks for the PR.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.