Date: Tue, 09 Oct 2007 02:07:22 +0100 From: Stephen Allen <sdafreebsduk@rowyerboat.com> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Question about rc-scripts Message-ID: <470AD44A.4070601@rowyerboat.com> In-Reply-To: <6.0.0.22.2.20071008183414.025a1e88@mail.computinginnovations.com> References: <470AB2FC.8070006@rowyerboat.com> <6.0.0.22.2.20071008183414.025a1e88@mail.computinginnovations.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Derek, > Not all scripts create a pid file is the simple answer. I didn't see how the isc-dhcpd script or dovecot created a pid, so I assumed it was something that rc.subr took care of. > Your script should create the pid file on start, remove it on stop, and > simply cat that file on a status. If you want help with your script, > post it, and I'm sure one of us will give you a hand. Again, I thought the rc.subr functions took care of all that for you (unless you wanted something special from those commands). I've posted the script (changed quite a lot from vendor supplied) at: http://www.pastebin.ca/730238 If you (or anyone) were to suggest changes, I would very much appreciate the reasons why, so I can learn. Many thanks, Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?470AD44A.4070601>