Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2007 17:35:31 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        sdafreebsduk@rowyerboat.com
Cc:        "Philip M. Gollucci" <philip@ridecharge.com>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Question about rc-scripts
Message-ID:  <63EFB59B-E889-412B-8E42-ABFFB4C1EDFF@mac.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?63EFB59B-E889-412B-8E42-ABFFB4C1EDFF>