Thread: BUG #8098: Bad option -I in contrib/start-scripts/linux

BUG #8098: Bad option -I in contrib/start-scripts/linux

From
catherine.devlin@gmail.com
Date:
The following bug has been logged on the website:

Bug reference:      8098
Logged by:          Catherine Devlin
Email address:      catherine.devlin@gmail.com
PostgreSQL version: 9.2.4
Operating system:   Ubuntu 12.10
Description:        =


Actually, bug is in 9.3devel from the git repo, but that's not an option in
your dropdown.  =


root@illyan:/etc/init.d# cp
/home/catherine/sw/postgresql/contrib/start-scripts/linux postgresql
root@illyan:/etc/init.d# chmod +x postgresql
root@illyan:/etc/init.d# ./postgresql start
Starting PostgreSQL: ok
root@illyan:/etc/init.d# ./postgresql status
pg_ctl: no server running
root@illyan:/etc/init.d# cat /usr/local/pgsql/data/serverlog =

/usr/local/pgsql/bin/postmaster: invalid option -- 'I'
Try "postmaster --help" for more information.

Removing -I from line 87 corrects the bug.

87c87
<     su - $PGUSER -c "$DAEMON -D '$PGDATA' &" >>$PGLOG 2>&1
---
>     su - $PGUSER -c "$DAEMON -I -D '$PGDATA' &" >>$PGLOG 2>&1

Re: BUG #8098: Bad option -I in contrib/start-scripts/linux

From
Tom Lane
Date:
catherine.devlin@gmail.com writes:
> root@illyan:/etc/init.d# cat /usr/local/pgsql/data/serverlog
> /usr/local/pgsql/bin/postmaster: invalid option -- 'I'
> Try "postmaster --help" for more information.

Meh.  Looks like Peter broke this in commit
87306184580c9c49717b00d48a2f9e717f21e0a8.  Thanks for the report!

            regards, tom lane