| … | |
… | |
| 2 | <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
2 | <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
| 3 | |
3 | |
| 4 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
4 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 5 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
5 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 6 | |
6 | |
| 7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml,v 1.27 2006/10/28 09:17:55 neysx Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml,v 1.28 2007/01/29 02:45:56 nightmorph Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <abstract> |
11 | <abstract> |
| 12 | Gentoo uses a special initscript format which, amongst other features, allows |
12 | Gentoo uses a special initscript format which, amongst other features, allows |
| … | |
… | |
| 541 | } |
541 | } |
| 542 | </pre> |
542 | </pre> |
| 543 | |
543 | |
| 544 | <p> |
544 | <p> |
| 545 | If your service must write to local disks, it should need <c>localmount</c>. If |
545 | If your service must write to local disks, it should need <c>localmount</c>. If |
| 546 | it places anything in <path>/var/run</path> such as a pidfile, then should |
546 | it places anything in <path>/var/run</path> such as a pidfile, then it should |
| 547 | start after <c>bootmisc</c>: |
547 | start after <c>bootmisc</c>: |
| 548 | </p> |
548 | </p> |
| 549 | |
549 | |
| 550 | <pre caption="Example depend() function"> |
550 | <pre caption="Example depend() function"> |
| 551 | depend() { |
551 | depend() { |