diff options
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: |