summaryrefslogtreecommitdiffstats
path: root/init/README.md
diff options
context:
space:
mode:
authorWei Wang <wvw@google.com>2017-03-27 10:59:11 -0700
committerWei Wang <wvw@google.com>2017-03-27 20:59:05 +0000
commit641ff0a4d8d05349d9c22f726a035a2936a2a94d (patch)
tree4cb56c2a0b6cf140631269bb946d27e2953f31fb /init/README.md
parentca622b4e78cd6ddc8b7d10a5acc9f685b3f11c04 (diff)
downloadcore-641ff0a4d8d05349d9c22f726a035a2936a2a94d.tar.gz
core-641ff0a4d8d05349d9c22f726a035a2936a2a94d.tar.bz2
core-641ff0a4d8d05349d9c22f726a035a2936a2a94d.zip
init: add support of multiple class names
Add support of multiple class names in service, so that related services can be grouped together. By doing this, we can start/stop some services for special purpose. For example, early zygote, early boot animation and etc. Bug: 36535312 Test: marlin boots with defined classes Change-Id: Ifeaaf034fd836816e24f3775bece53ea83faada6
Diffstat (limited to 'init/README.md')
-rw-r--r--init/README.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/init/README.md b/init/README.md
index 709c6675f..65d6543d8 100644
--- a/init/README.md
+++ b/init/README.md
@@ -192,11 +192,12 @@ runs the service.
`oneshot`
> Do not restart the service when it exits.
-`class <name>`
-> Specify a class name for the service. All services in a
+`class <name> [ <name>\* ]`
+> Specify class names for the service. All services in a
named class may be started or stopped together. A service
is in the class "default" if one is not specified via the
- class option.
+ class option. Additional classnames beyond the (required) first
+ one are used to group services.
`onrestart`
> Execute a Command (see below) when service restarts.