This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PostgreSQL 'initdb' returns without action!


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]