Initscripts/Writing rc.d scripts
|Summary help replacing me|
|Writing rc.d daemon scripts.|
|Arch Boot Process|
As part of Arch's 'BSD-style' init, rc.d scripts are used to control the starting,stopping and restarting of daemons. This guide will help to create your own rc.d scripts.
- Source Template:Filename, Template:Filename, and optionally Template:Filename.
- Arguments and other daemon options should be placed in Template:Filename. This is done to separate configuration from logic and to keep a consistent style among daemon scripts.
- Use functions in Template:Filename.
- Include at least start, stop and restart.
The following is an example for crond. Look in Template:Filename for a greater variety.
The configuration file: Template:File
The actual script: Template:File