From owner-freebsd-stable@FreeBSD.ORG Fri Mar 9 15:02:54 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5147716A407 for ; Fri, 9 Mar 2007 15:02:54 +0000 (UTC) (envelope-from vivek@khera.org) Received: from yertle.kcilink.com (yertle.kcilink.com [74.92.149.58]) by mx1.freebsd.org (Postfix) with ESMTP id EE75F13C491 for ; Fri, 9 Mar 2007 15:02:53 +0000 (UTC) (envelope-from vivek@khera.org) Received: from [192.168.7.103] (host-103.int.kcilink.com [192.168.7.103]) by yertle.kcilink.com (Postfix) with ESMTP id 7C2DFB80A for ; Fri, 9 Mar 2007 10:02:53 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <45F0A6DE.4090604@FreeBSD.org> References: <52267.194.69.32.50.1173359004.squirrel@webmail.nerim.net> <45F0A6DE.4090604@FreeBSD.org> Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-5--275639136; protocol="application/pkcs7-signature" Message-Id: From: Vivek Khera Date: Fri, 9 Mar 2007 10:02:52 -0500 To: FreeBSD Stable X-Mailer: Apple Mail (2.752.2) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Background process X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 15:02:54 -0000 --Apple-Mail-5--275639136 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Mar 8, 2007, at 7:14 PM, Doug Barton wrote: > Failing that, if you need to preserve anything that is emitted from > the program, nohup is probably your best bet. If it isn't going to > spit anything out on the terminal, take a look at daemon(8), which > you probably will want to run with the -f option. I can't remember needing nohup to run *anything* since the ancient days of the old old old /bin/sh which would kill all of your processes upon logout. Modern shells do not do this. Just redirect the stdin/stdout/stderr appropriately and run in bg. The more appropriate tool, assuming the original program has no "run as daemon" flag is the daemon(8) program as mentioned above. --Apple-Mail-5--275639136--