[Ericsson AB]

script

FILE

script

FILE SUMMARY

Boot script

DESCRIPTION

The boot script describes how the Erlang runtime system is started. It contains instructions on which code to load and which processes and applications to start.

The command erl -boot Name starts the system with a boot file called Name.boot, which is generated from the Name.script file, using systools:script2boot/1.

The .script file is generated by systools from a .rel file and .app files.

FILE SYNTAX

The boot script is stored in a file with the extension .script

The file has the following syntax:

{script, {Name, Vsn},
 [
  {progress, loading},
  {preLoaded, [Mod1, Mod2, ...]},
  {path, [Dir1,"$ROOT/Dir",...]}.
  {primLoad, [Mod1, Mod2, ...]},
  ...
  {kernel_load_completed},
  {progress, loaded},
  {kernelProcess, Name, {Mod, Func, Args}},
  ...
  {apply, {Mod, Func, Args}},
  ...
  {progress, started}]}.    
Note

In the interactive system the code loader provides demand driven code loading, but in the embedded system the code loader loads all the code immediately. The same version of code is used in both cases. The code server calls init:get_argument(mode) to find out if it should run in demand mode, or non-demand driven mode.

SEE ALSO

systools(3)


sasl 2.1.5.3
Copyright © 1991-2008 Ericsson AB