Date: Tue, 21 Feb 2006 16:14:42 +0900 (JST) From: NIIMI Satoshi <sa2c@sa2c.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/93621: [patch] porter's handbook: incorrect example of rc.d script Message-ID: <20060221071442.B09671145E@berkeley.l.sa2c.net> Resent-Message-ID: <200602210720.k1L7K9nV061423@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 93621 >Category: docs >Synopsis: [patch] porter's handbook: incorrect example of rc.d script >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 21 07:20:03 GMT 2006 >Closed-Date: >Last-Modified: >Originator: NIIMI Satoshi >Release: FreeBSD 6.0-RELEASE-p4 i386 >Organization: >Environment: System: FreeBSD berkeley.l.sa2c.net 6.0-RELEASE-p4 FreeBSD 6.0-RELEASE-p4 #3: Thu Feb 2 20:03:08 JST 2006 root@berkeley.l.sa2c.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: The example rc.d script in section 6.15 "Starting and stopping services (rc scripts)" does not work because it uses variables before set. Some ports (security/clamsmtp for example) follow the example and fall in the pit. >How-To-Repeat: >Fix: --- book.diff begins here --- Index: book.sgml =================================================================== RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v retrieving revision 1.681 diff -u -r1.681 book.sgml --- book.sgml 20 Feb 2006 20:06:36 -0000 1.681 +++ book.sgml 21 Feb 2006 07:06:34 -0000 @@ -5952,7 +5952,7 @@ rcvar=${name}_enable command=%%PREFIX%%/sbin/doormand -command_args="-p $pidfile -f $doormand_config" +command_args='-p $pidfile -f $doormand_config' pidfile=/var/run/doormand.pid load_rc_config $name --- book.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060221071442.B09671145E>