This is the mail archive of the
cygwin
mailing list for the Cygwin project.
PostgreSQL 'initdb' returns without action!
- From: <sbremal at hotmail dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Thu, 24 Oct 2013 09:22:35 +0000
- Subject: PostgreSQL 'initdb' returns without action!
- Authentication-results: sourceware.org; auth=none
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