From owner-freebsd-questions Wed Mar 5 07:56:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA24015 for questions-outgoing; Wed, 5 Mar 1997 07:56:07 -0800 (PST) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA23943 for ; Wed, 5 Mar 1997 07:56:01 -0800 (PST) Received: by mail.EUnet.hu, id QAA16159; Wed, 5 Mar 1997 16:55:57 +0100 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id QAA00310; Wed, 5 Mar 1997 16:05:40 +0100 (MET) From: Zahemszky Gabor Message-Id: <199703051505.QAA00310@CoDe.hu> Subject: Re: Starting postgres at bootup To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Wed, 5 Mar 1997 16:05:39 +0100 (MET) Cc: h.wickhorst@elmshorn.netsurf.de In-Reply-To: <199703032247.XAA13367@thor.shn.com> from Henning Wickhorst at "Mar 3, 97 11:47:32 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 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 ? Hi! Well, it's not in the manual (2.1.5), but it means: simulate a full login of user, (as the ``-l'' option in the FreeBSD's manual). It's the old semantic, used most of the Unices (I worked on), but it's in the sources, too. Of course, you need the source to verify it :-) Gabor