NetBSD Problem Report #30312

From mishka@apk.od.ua  Mon May 23 14:05:31 2005
Return-Path: <mishka@apk.od.ua>
Received: from relay.apk.od.ua (insaharprom-k.TeNeT.Odessa.UA [195.138.79.154])
	by narn.netbsd.org (Postfix) with ESMTP id 0E91F63B104
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 23 May 2005 14:05:28 +0000 (UTC)
Message-Id: <200505231405.j4NE55Zs027751@nostromo.holding.local>
Date: Mon, 23 May 2005 17:05:05 +0300 (EEST)
From: mishka@apk.od.ua
Reply-To: mishka@apk.od.ua
To: gnats-bugs@netbsd.org
Subject: PostgreSQL 8 rc.d script problem while doing initdb
X-Send-Pr-Version: 3.95

>Number:         30312
>Category:       pkg
>Synopsis:       PostgreSQL 8 rc.d script problem while doing initdb
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    recht
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 23 14:06:00 +0000 2005
>Closed-Date:    Sun Jul 10 17:37:20 +0000 2005
>Last-Modified:  Sun Jul 10 17:37:20 +0000 2005
>Originator:     Mike M. Volokhov
>Release:        NetBSD 3.99.3
>Organization:
	ISPK
>Environment:
System: NetBSD nostromo.holding.local 3.99.3 NetBSD 3.99.3 (GENERIC) #0: Sat Apr 9 02:07:43 EEST 2005 mishka@nostromo.holding.local:/build/netbsd/obj-08042005/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

	Greetings!

	After first installing postgresql80-server, i've ran
	"rc.d/pgsql initdb" command, failed with following output:

	# /etc/rc.d/pgsql initdb
	Initializing PostgreSQL databases.
	initdb: unknown option -- m
	Try "initdb --help" for more information.

	This happens because $common_args variable contains "-m fast" flag,
	which is for "pg_ctl shutdown" only.

>How-To-Repeat:

	# cd pkgsrc/databases/postgresql80-server
	# make install
	# /usr/pkg/share/examples/rc.d/pgsql.sh forceinitdb

>Fix:

	Please use the following trivial patch for
	pkgsrc/databases/postgresql80-server/files/pgsql.sh file:

Index: pgsql.sh
===================================================================
RCS file: /usr/home/mishka/NetBSD-CVS/pkgsrc/databases/postgresql80-server/files/pgsql.sh,v
retrieving revision 1.2
diff -u -r1.2 pgsql.sh
--- pgsql.sh	16 May 2005 01:02:20 -0000	1.2
+++ pgsql.sh	23 May 2005 13:50:47 -0000
@@ -42,9 +42,9 @@
 fi

 pidfile="${pgsql_home}/data/postmaster.pid"
-common_args="-D ${pgsql_home}/data -m fast"
+common_args="-D ${pgsql_home}/data"
 start_command_args="-w -s -l ${pgsql_home}/errlog"
-stop_command_args="-s"
+stop_command_args="-s -m fast"

 initdb_cmd="pgsql_initdb"
 start_precmd="pgsql_precmd"

	--
	Best regards,
	Mishka.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->recht
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Wed, 25 May 2005 02:30:25 +0000
Responsible-Changed-Why:
Assigned to maintainer.


State-Changed-From-To: open->closed
State-Changed-By: recht@netbsd.org
State-Changed-When: Sun, 10 Jul 2005 17:37:20 +0000
State-Changed-Why:
Fixed by cjs in rev. 1.4 of pgsql.sh.
Thanks for the PR!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.