Difference between revisions of "Initscripts/Writing rc.d scripts"
m |
m (Bot: Removing from Category:HOWTOs (English)) |
||
Line 1: | Line 1: | ||
[[Category:Boot process (English)]] | [[Category:Boot process (English)]] | ||
− | |||
{{i18n|Writing rc.d scripts}} | {{i18n|Writing rc.d scripts}} | ||
{{Article summary start}} | {{Article summary start}} |
Revision as of 18:39, 10 June 2011
Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary end
As part of Arch's 'BSD-style' init, rc.d scripts are used to control the starting, stopping and restarting of daemons.
Guideline
- 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 instead of duplicating their functionality.
- Include at least start, stop and restart as arguments to the script.
Example
The following is an example for crond. Look in Template:Filename for greater variety.
The configuration file: Template:File
The actual script: Template:File