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.