Practical rc.d scripting in BSD
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 | Home | Next
Practical rc.d scripting in BSD |  | A dummy script