From owner-freebsd-questions Mon Feb 10 14: 0: 3 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A806F37B401 for ; Mon, 10 Feb 2003 14:00:02 -0800 (PST) Received: from mail.k12us.com (mail.k12us.com [65.112.222.15]) by mx1.FreeBSD.org (Postfix) with SMTP id 9018343F75 for ; Mon, 10 Feb 2003 14:00:01 -0800 (PST) (envelope-from cweimann@k12hq.com) Received: (qmail 3585 invoked by uid 1001); 10 Feb 2003 21:59:58 -0000 Date: Mon, 10 Feb 2003 16:59:58 -0500 From: Christopher Weimann To: Manuel Kasper Cc: freebsd-questions@freebsd.org Subject: Re: exec'ing ppp from within PHP Message-ID: <20030210165958.A55795@mail.k12us.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from mk@neon1.net on Mon, Feb 10, 2003 at 10:16:22PM +0100 X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon 02/10/2003-10:16:22PM +0100, Manuel Kasper wrote: > > I simply can't imagine what difference it makes whether ppp has been > executed from PHP or from a shell script once it is running. And yes, I'm > using > /dev/null 2>&1 in the exec() in PHP to make sure PHP won't wait for > ppp - in fact PHP exits correctly after the exec, leaving ppp to run in the > background. > I have had similar problems with php. You need to use /usr/sbin/daemon or /usr/ports/sysutils/detach if your FreeBSD doesn't have deamon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message