From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 19 15:15:10 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1120C16A41F for ; Wed, 19 Oct 2005 15:15:10 +0000 (GMT) (envelope-from molter@tin.it) Received: from ams-iport-1.cisco.com (ams-iport-1.cisco.com [144.254.224.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5860843D45 for ; Wed, 19 Oct 2005 15:15:08 +0000 (GMT) (envelope-from molter@tin.it) Received: from ams-core-1.cisco.com ([144.254.224.150]) by ams-iport-1.cisco.com with ESMTP; 19 Oct 2005 17:15:08 +0200 Received: from xbh-ams-332.emea.cisco.com (xbh-ams-332.cisco.com [144.254.231.87]) by ams-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id j9JFEYHf011466 for ; Wed, 19 Oct 2005 17:15:05 +0200 (MEST) Received: from xfe-ams-331.emea.cisco.com ([144.254.231.72]) by xbh-ams-332.emea.cisco.com with Microsoft SMTPSVC(6.0.3790.0); Wed, 19 Oct 2005 17:15:00 +0200 Received: from barbapapa.cisco.com ([144.254.53.64]) by xfe-ams-331.emea.cisco.com with Microsoft SMTPSVC(6.0.3790.0); Wed, 19 Oct 2005 17:15:00 +0200 Received: by barbapapa.cisco.com (Postfix, from userid 1000) id DE41732D; Wed, 19 Oct 2005 17:15:21 +0200 (CEST) From: Marco Molteni To: hackers@freebsd.org Date: Wed, 19 Oct 2005 17:15:21 +0200 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510191715.21582.molter@tin.it> X-OriginalArrivalTime: 19 Oct 2005 15:15:00.0370 (UTC) FILETIME=[DF836720:01C5D4BF] Cc: Subject: rc scripts: how to start a process that doesn't daemonize itself? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Oct 2005 15:15:10 -0000 Hi, I have a program that I would like to control via a rc script, say /usr/local/etc/rc.d/myprog problem is this program needs to be put explicitly in background. I was playing with things like command="/usr/sbin/daemon /usr/local/bin/myprog" but this obviously works only for the start case. Should I just override start() completely or is there a common way to do it? I don't think I can simply pass a "&" somewhere... thanks marco