From owner-freebsd-questions@FreeBSD.ORG Wed Oct 10 00:35:33 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00EF916A46E for ; Wed, 10 Oct 2007 00:35:33 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.freebsd.org (Postfix) with ESMTP id D9F3813C480 for ; Wed, 10 Oct 2007 00:35:32 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay11.apple.com (relay11.apple.com [17.128.113.48]) by mail-out4.apple.com (Postfix) with ESMTP id 56825153CBC5; Tue, 9 Oct 2007 17:35:32 -0700 (PDT) Received: from relay11.apple.com (unknown [127.0.0.1]) by relay11.apple.com (Symantec Mail Security) with ESMTP id 3A7C72808D; Tue, 9 Oct 2007 17:35:32 -0700 (PDT) X-AuditID: 11807130-a33c1bb000004daf-7d-470c1e54089e Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay11.apple.com (Apple SCV relay) with ESMTP id 1E52B2805A; Tue, 9 Oct 2007 17:35:32 -0700 (PDT) In-Reply-To: <470C19D5.1060101@rowyerboat.com> References: <470AB2FC.8070006@rowyerboat.com> <6.0.0.22.2.20071008183414.025a1e88@mail.computinginnovations.com> <470AD44A.4070601@rowyerboat.com> <470AD780.30702@ridecharge.com> <470C19D5.1060101@rowyerboat.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <63EFB59B-E889-412B-8E42-ABFFB4C1EDFF@mac.com> Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Tue, 9 Oct 2007 17:35:31 -0700 To: sdafreebsduk@rowyerboat.com X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: "Philip M. Gollucci" , FreeBSD Questions Subject: Re: Question about rc-scripts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Oct 2007 00:35:33 -0000 On Oct 9, 2007, at 5:16 PM, sdafreebsduk@rowyerboat.com wrote: >> Most binaries i.e. httpd, memcached, mysqld, etc... provide a >> config file or cli option to provide the path to a pid file. > > Like you say - I can't find anything in rc.subr that would create a > pid. So, I looked in /etc/rc.d/ntpd (for example), and I still > can't find in there where it might create a pid. In the case of ntpd, the default arguments look like this: /usr/sbin/ntpd -p /var/run/ntpd.pid ... ...so the ntpd process creates the pidfile. -- -Chuck