Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Mar 1997 23:47:32 +0100
From:      hw@thor.shn.com (Henning Wickhorst)
To:        questions@freebsd.org
Subject:   Re: Starting postgres at bootup
Message-ID:  <199703032247.XAA13367@thor.shn.com>

next in thread | raw e-mail | index | archive | help
Henning Wickhorst (hw@thor.shn.com) wrote:
: Hi,
: 
: I' m running postgresql V6.0 on a FreeBSD Box (V2.1.0-R).
: But i found no way to start the postmaster while booting.
: 
: The postmaster daemon has to run under uid 'postgres'.
: 
: I put this line into the 'rc.local' file :
:       /bin/echo "/u/pgsql/bin/postmaster -D/u/pgsql/data > \
:       /u/pgsql/server.log  2>&1 &" | /usr/bin/su - postgres
: But the postmaster dies with signal 11 at bootup.

I found the solution:
       /bin/echo "/u/pgsql/bin/postmaster -D/u/pgsql/data > \
       /u/pgsql/server.log  2>&1 &" | /usr/bin/su - postgres
                                                  ^
                                                  |
 This dash was causing the problem. I took it away and eyerything 
 works fine.

 Does anybody know what this dash is exactly doing ?
 
 Regards,
 Henning

-- 
------------------------------------------------------------------
Henning Wickhorst         
Elmshorn, Germany         E-Mail:  h.wickhorst@elmshorn.netsurf.de
------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703032247.XAA13367>