diff options
author | Wei Wang <wvw@google.com> | 2017-03-27 10:59:11 -0700 |
---|---|---|
committer | Wei Wang <wvw@google.com> | 2017-03-27 20:59:05 +0000 |
commit | 641ff0a4d8d05349d9c22f726a035a2936a2a94d (patch) | |
tree | 4cb56c2a0b6cf140631269bb946d27e2953f31fb /init/README.md | |
parent | ca622b4e78cd6ddc8b7d10a5acc9f685b3f11c04 (diff) | |
download | core-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.md | 7 |
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. |