2. Outlining the task
Prev |  | Next

## 2. Outlining the task

A little consideration before starting `$EDITOR` will not hurt. In order to write a well-tempered `rc.d` script for a system service, we should be able to answer the following questions first:

- Is the service mandatory or optional?

- Will the script serve a single program, e.g., a daemon, or perform more complex actions?

- Which other services will our service depend on, and vice versa?

From the examples that follow we will see why it is important to know the answers to these questions.

Prev |  | Next
Practical rc.d scripting in BSD | Home | 3. A dummy script

All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.