8

i need to understand the format of init.rc

in init.rc there are so manny services. One of them is

service bootanim /system/bin/bootanimation
    user graphics
    group graphics
    disabled
    oneshot 

here whats meaning of disabled, oneshot for what purpose this all are here?

i have refer this article but not getting so much.

kosa
  • 65,990
  • 13
  • 130
  • 167
Jeegar Patel
  • 26,264
  • 51
  • 149
  • 222

4 Answers4

13

http://elinux.org/Android_Booting is probably a better reference.

There's also system/core/init/README.md from the Android source tree.

Sam Protsenko
  • 14,045
  • 4
  • 59
  • 75
3

disabled
This service will not automatically start with its class. It must be explicitly started by name.

oneshot
Do not restart the service when it exits.

Here is a reference you can use:
https://github.com/aosp-mirror/platform_system_core/blob/master/init/README.md

Pang
  • 9,564
  • 146
  • 81
  • 122
Jacob Abraham
  • 915
  • 9
  • 8
3

From the init/readme.txt in the Android source tree.

disabled - This service will not automatically start with its class. It must be explicitly started by name.

oneshot - Do not restart the service when it exits.

cytinus
  • 5,467
  • 8
  • 36
  • 47
2

It is a configuration file for services loaded in <source_root>/system/core/init/init.c by <source_root>/system/core/init/init_parser.c. init_parser.c parses and loads appropriate services.

Rajdeep Dua
  • 11,190
  • 2
  • 32
  • 22