From owner-freebsd-questions Mon Mar 3 15:02:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA04541 for questions-outgoing; Mon, 3 Mar 1997 15:02:56 -0800 (PST) Received: from mail.shlink.de (root@mail.shlink.de [194.64.6.2]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id PAA04531 for ; Mon, 3 Mar 1997 15:02:48 -0800 (PST) Received: by mail.shlink.de (Smail3.1.29.1 #3) id m0w1gnP-000XtGC; Tue, 4 Mar 97 00:05 MET Received: (from hw@localhost) by thor.shn.com (8.6.12/8.6.6) id XAA13367 for questions@freebsd.org; Mon, 3 Mar 1997 23:47:32 +0100 Date: Mon, 3 Mar 1997 23:47:32 +0100 Message-Id: <199703032247.XAA13367@thor.shn.com> From: hw@thor.shn.com (Henning Wickhorst) Subject: Re: Starting postgres at bootup To: questions@freebsd.org Organization: Private site Reply-To: h.wickhorst@elmshorn.netsurf.de Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 ------------------------------------------------------------------