pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
contrib/start-scripts/freebsd script fails with Ambiguous output redirect.
3+ messages / 2 participants
[nested] [flat]

* contrib/start-scripts/freebsd script fails with Ambiguous output redirect.
@ 2018-03-15 19:59 Yavuz TANRIVERDİ <sternix@gmail.com>
  2018-03-15 21:23 ` Re: contrib/start-scripts/freebsd script fails with Ambiguous output redirect. Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Yavuz TANRIVERDİ @ 2018-03-15 19:59 UTC (permalink / raw)
  To: pgsql-bugs

Hi

I install PostgreSQL 10.3 from official sources to FreeBSD 11.1 than add
start script to rc.d system

# cp postgresql-10.3/contrib/start-scripts/freebsd
/usr/local/etc/rc.d/postgresql.sh
# chmod +x /usr/local/etc/rc.d/postgresql.sh

than want to start the server with "/usr/local/etc/rc.d/postgresql.sh
start" command but i  get "Ambiguous output redirect." error

i suspect the commit
https://github.com/postgres/postgres/commit/dfc015dcf46c1996bd7ed5866e9e045d258604b3
caused this failure (older version of this script works fine)

if you interested i edit contrib/start-scripts/freebsd file with pg_ctl
based version, i used without any failures. you can find in
https://github.com/sternix/files/blob/master/scripts/postgresql.sh

Thanks.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: contrib/start-scripts/freebsd script fails with Ambiguous output redirect.
  2018-03-15 19:59 contrib/start-scripts/freebsd script fails with Ambiguous output redirect. Yavuz TANRIVERDİ <sternix@gmail.com>
@ 2018-03-15 21:23 ` Tom Lane <tgl@sss.pgh.pa.us>
  2018-03-16 08:17   ` Re: contrib/start-scripts/freebsd script fails with Ambiguous output redirect. Yavuz TANRIVERDİ <sternix@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2018-03-15 21:23 UTC (permalink / raw)
  To: Yavuz TANRIVERDİ <sternix@gmail.com>; +Cc: pgsql-bugs

=?UTF-8?Q?Yavuz_TANRIVERD=C4=B0?= <sternix@gmail.com> writes:
> I install PostgreSQL 10.3 from official sources to FreeBSD 11.1 than add
> start script to rc.d system

> # cp postgresql-10.3/contrib/start-scripts/freebsd
> /usr/local/etc/rc.d/postgresql.sh
> # chmod +x /usr/local/etc/rc.d/postgresql.sh

> than want to start the server with "/usr/local/etc/rc.d/postgresql.sh
> start" command but i  get "Ambiguous output redirect." error

Perhaps you're using a non-bourne-compatible shell for the postgres
user account?  If so, you'd likely need to adapt the syntax for the
passed-down command.

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: contrib/start-scripts/freebsd script fails with Ambiguous output redirect.
  2018-03-15 19:59 contrib/start-scripts/freebsd script fails with Ambiguous output redirect. Yavuz TANRIVERDİ <sternix@gmail.com>
  2018-03-15 21:23 ` Re: contrib/start-scripts/freebsd script fails with Ambiguous output redirect. Tom Lane <tgl@sss.pgh.pa.us>
@ 2018-03-16 08:17   ` Yavuz TANRIVERDİ <sternix@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Yavuz TANRIVERDİ @ 2018-03-16 08:17 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs

On Fri, Mar 16, 2018 at 12:23 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> =?UTF-8?Q?Yavuz_TANRIVERD=C4=B0?= <sternix@gmail.com> writes:
> > I install PostgreSQL 10.3 from official sources to FreeBSD 11.1 than add
> > start script to rc.d system
>
> > # cp postgresql-10.3/contrib/start-scripts/freebsd
> > /usr/local/etc/rc.d/postgresql.sh
> > # chmod +x /usr/local/etc/rc.d/postgresql.sh
>
> > than want to start the server with "/usr/local/etc/rc.d/postgresql.sh
> > start" command but i  get "Ambiguous output redirect." error
>
> Perhaps you're using a non-bourne-compatible shell for the postgres
> user account?  If so, you'd likely need to adapt the syntax for the
> passed-down command.
>
>                         regards, tom lane
>

Yes postgres user account's shell is /bin/csh
after changing shell to /bin/sh, script works as expected

postgres% chsh -s /bin/sh

Thank you very much.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-03-16 08:17 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-03-15 19:59 contrib/start-scripts/freebsd script fails with Ambiguous output redirect. Yavuz TANRIVERDİ <sternix@gmail.com>
2018-03-15 21:23 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-03-16 08:17   ` Yavuz TANRIVERDİ <sternix@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox