diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2018-01-12 14:10:42 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2018-01-12 14:10:42 -0600 |
commit | fee2ffe559bc39beec16585daf557b902a53137b (patch) | |
tree | f7940d6f48533b0a5c940dd2336d5c1dd12db2a3 /service-script-guide.md | |
parent | 8878f8916b7682a333d1e40af991cd7354192be1 (diff) |
Reformat and fix titles in documentation
Diffstat (limited to 'service-script-guide.md')
-rw-r--r-- | service-script-guide.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/service-script-guide.md b/service-script-guide.md index 4839e1b4..56e0b339 100644 --- a/service-script-guide.md +++ b/service-script-guide.md @@ -1,4 +1,5 @@ -# OpenRC Service Script Writing Guide +OpenRC Service Script Writing Guide +=================================== This document is aimed at developers or packagers who write OpenRC service scripts, either for their own projects, or for @@ -13,7 +14,7 @@ don't consider anything exotic, and assume that you will use start-stop-daemon to manage a fairly typical long-running UNIX process. -## Syntax of Service Scripts +# Syntax of Service Scripts Service scripts are shell scripts. OpenRC aims at using only the standardized POSIX sh subset for portability reasons. The default interpreter (build-time @@ -59,7 +60,7 @@ started or stopped, it should test the `$RC_CMD` variable, for example: [ "$RC_CMD" = restart ] && do_something ``` -## The Depend Function +# The Depend Function This function declares the dependencies for a service script. This determines the order the service scripts start. @@ -97,7 +98,7 @@ depend() { FIXME: Anything missing in this list? -## The Default Functions +# The Default Functions All service scripts are assumed to have the following functions: |