From owner-svn-doc-head@FreeBSD.ORG Fri Feb 13 16:02:10 2015 Return-Path: Delivered-To: svn-doc-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E55B3683; Fri, 13 Feb 2015 16:02:09 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0B441E3; Fri, 13 Feb 2015 16:02:09 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1DG29lt048312; Fri, 13 Feb 2015 16:02:09 GMT (envelope-from brd@FreeBSD.org) Received: (from brd@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1DG29to048311; Fri, 13 Feb 2015 16:02:09 GMT (envelope-from brd@FreeBSD.org) Message-Id: <201502131602.t1DG29to048311@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: brd set sender to brd@FreeBSD.org using -f From: Brad Davis Date: Fri, 13 Feb 2015 16:02:09 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r46269 - head/en_US.ISO8859-1/books/porters-handbook/special X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2015 16:02:10 -0000 Author: brd Date: Fri Feb 13 16:02:08 2015 New Revision: 46269 URL: https://svnweb.freebsd.org/changeset/doc/46269 Log: Sprinkle replaceable tags in the startup script section Reviewed by: brueffer bjk Modified: head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml Fri Feb 13 15:43:42 2015 (r46268) +++ head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml Fri Feb 13 16:02:08 2015 (r46269) @@ -4372,7 +4372,7 @@ post-patch: doormand daemon. Add the following to the Makefile: - USE_RC_SUBR= doormand + USE_RC_SUBR= doormand Multiple scripts may be listed and will be installed. Scripts must be placed in the files @@ -4397,37 +4397,37 @@ post-patch: # $FreeBSD$ # -# PROVIDE: doormand +# PROVIDE: doormand # REQUIRE: LOGIN # KEYWORD: shutdown # # Add these lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # -# doormand_enable (bool): Set to NO by default. -# Set it to YES to enable doormand. -# doormand_config (path): Set to %%PREFIX%%/etc/doormand/doormand.cf +# doormand_enable (bool): Set to NO by default. +# Set it to YES to enable doormand. +# doormand_config (path): Set to %%PREFIX%%/etc/doormand/doormand.cf # by default. . /etc/rc.subr -name=doormand -rcvar=doormand_enable +name=doormand +rcvar=doormand_enable load_rc_config $name -: ${doormand_enable:="NO"} -: ${doormand_config="%%PREFIX%%/etc/doormand/doormand.cf"} +: ${doormand_enable:="NO"} +: ${doormand_config="%%PREFIX%%/etc/doormand/doormand.cf"} command=%%PREFIX%%/sbin/${name} pidfile=/var/run/${name}.pid -command_args="-p $pidfile -f $doormand_config" +command_args="-p $pidfile -f $doormand_config" run_rc_command "$1" Unless there is a good reason to start the service - earlier, all ports scripts should use + earlier, all ports scripts should use: REQUIRE: LOGIN @@ -4447,9 +4447,9 @@ run_rc_command "$1" ":=" style here, since the former sets a default value only if the variable is unset, and the latter sets one if the variable is unset or null. A user - might very well include something like + might very well include something like: - doormand_flags="" + doormand_flags="" in their rc.conf.local, and a variable substitution using ":=" would