delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/10/24/05:22:54

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:subject:date:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=ONU
+RBgdMlrnJckZV2T21Bu4FJIDNAM9ywhkV2dK4wkPlJaP9dW0sTI9/fCe+sJT+AB
yCSSkahAaCsGDmWivaNdAxlFlcq9q6IfMuBEbgykAUTBC73RPitb65RLQDnlcMPo
SGI8TIBg6JFqoJFxXjKqxZIJjGAhH858LFTUFHS4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:subject:date:content-type
:content-transfer-encoding:mime-version; s=default; bh=kB4Pm74sh
LMKOplyKce0pw8HxKQ=; b=DQ5Hc3goDT94pv2kU4K5kvg601kdOxZ9hxQZW47UR
Moq/VB37ASBx5MoCD5hRNtQ2+p2Z2jQ7BKI49vi8pUp5yi9HEVUwliWNlFyrtmlN
aqTfqVKR9lN7rA1ybQzYKQfSLGAkYKidDK8dbAzzs3wLnvFyd++NricTW86IoXw1
jQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: Yes, score=5.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2
X-HELO: dub0-omc1-s10.dub0.hotmail.com
X-TMN: [qwH2johZwtPtBe+EJVCEB7rbk4/pfEPv]
Message-ID: <DUB126-W7320183B210655A13742AEA90C0@phx.gbl>
From: <sbremal AT hotmail DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: PostgreSQL 'initdb' returns without action!
Date: Thu, 24 Oct 2013 09:22:35 +0000
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r9O9Mq9H014149

Hello

Straight to the facts:

$ /etc/rc.d/init.d/postgresql initdb

Nothing...

$ bash -x /etc/rc.d/init.d/postgresql initdb
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ PREFIX=/usr
+ PGDATA=/usr/share/postgresql/data
+ CONFIG=/usr/share/postgresql/data/postgresql.conf
+ PIDFILE=/usr/share/postgresql/data/postgresql.pid
+ LOGFILE=/var/log/postgresql.log
+ SOCKETDIR=/tmp
+ '[' -f /etc/init.d/functions ']'
+ RETVAL=0
+ name=PostgreSQL
+ prog=postmaster
+ progdir=/usr/sbin
+ DAEMON=/usr/sbin/postmaster.exe
+ POSTMASTER_ARGS='-D /usr/share/postgresql/data -k /tmp -i'
+ INITDB_ARGS='-E SQL_ASCII --locale=C -D /usr/share/postgresql/data'
+ test -f /usr/sbin/postmaster.exe
+ exit 0

Hm?

$ ls -l /usr/sbin/postmaster.exe
ls: cannot access /usr/sbin/postmaster.exe: No such file or directory

Aham!

$ diff /etc/rc.d/init.d/postgresql /etc/rc.d/init.d/postgresql.original
32c32
< DAEMON="$progdir/$prog"
---
> DAEMON="$progdir/$prog.exe"

Yeah!

Version: postgresql-9.2.4-2

Anyone seeing the same behaviour? Would make sense to commit this fix?


Cheers
Balazs 		 	   		  
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019