From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 9 11:36:30 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2B2C0B0D for ; Tue, 9 Jul 2013 11:36:30 +0000 (UTC) (envelope-from feld@feld.me) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id F39A61A37 for ; Tue, 9 Jul 2013 11:36:29 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id F05B520D61 for ; Tue, 9 Jul 2013 07:36:28 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute6.internal (MEProxy); Tue, 09 Jul 2013 07:36:28 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=feld.me; h= content-type:to:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to; s= mesmtp; bh=fRH7T9+7mjLCX9577yREQN6CLI0=; b=mD+nVZGoQnU94cGCfdPX0 5py0O2M43UIiCIL/OUvTs6AOPPF2VC41usT58WZ73SjXuCMbdoasWZ2ntFytkUDj HuyoHCRxJnqSYel24o1gcVL0DyJ0py+qWl9KPNFD9kcgxLyj8QO5oGDsJS88JhhP d5cZb0jbzqYz/DhuAZqYEQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:to:subject:references:date :mime-version:content-transfer-encoding:from:message-id :in-reply-to; s=smtpout; bh=fRH7T9+7mjLCX9577yREQN6CLI0=; b=YBdb SFNfozZvv3ObFd9NEeSTP9T9nVZOzE3qin/jhtzNZ1BWYkNuGrd8EUehjA0gmzVj Y5+iR3CEOQ5xWUGJ5xImUBB7Fg9uW1Pt/kPAncQU9wr8pcrxH6DDVkt7mn7rOOcu ka77U6MMBzQv9K8KVbN5U3teKxDJkunP1VTvCNE= X-Sasl-enc: TW7e2alK/c3xPdF25+pCo4meXBqAXcGH9YTrkaXp57Xj 1373369788 Received: from markf.office.supranet.net (unknown [66.170.8.18]) by mail.messagingengine.com (Postfix) with ESMTPA id BDE186804D5 for ; Tue, 9 Jul 2013 07:36:28 -0400 (EDT) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-hackers@freebsd.org Subject: Re: writing a rc.d script References: Date: Tue, 09 Jul 2013 06:36:28 -0500 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Mark Felder" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.15 (FreeBSD) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jul 2013 11:36:30 -0000 On Sun, 07 Jul 2013 06:45:46 -0500, Aryeh Friedman wrote: > I have a program I am making a port for that also requires a > /usr/local/etc/rc.d script is there anywhere I can find documentation > on how write one and/or a template file to follow? > Start with another similar port if possible. Make sure you use rclint to verify its correctness. There is a ton of information inside /etc/rc.subr and /usr/ports/Mk/* which may help you write your port where the documentation falls short.