File: start_erl.1

package info (click to toggle)
erlang-manpages 1%3A12.b.3-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,188 kB
  • ctags: 2
  • sloc: makefile: 68; perl: 30; sh: 15
file content (50 lines) | stat: -rw-r--r-- 3,899 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.TH start_erl 1 "erts  5.6.3" "Ericsson AB" "USER COMMANDS"
.SH NAME
start_erl \- Start Erlang for embedded systems on Windows NT(R)
.SH DESCRIPTION
.LP
This describes the \fIstart_erl\fR program specific to Windows NT\&. Although there exists programs with the same name on other platforms, their functionality is not the same\&.
.LP
The \fIstart_erl\fR program is distributed both in compiled form (under <Erlang root>\eerts-<version>\ebin) and in source form (under <Erlang root>\eerts-<version>\esrc)\&. The purpose of the source code is to make it possible to easily customize the program for local needs, such as cyclic restart detection etc\&. There is also a "make"-file, written for the \fInmake\fR program distributed with Microsoft(R) Visual C++(R)\&. The program can however be compiled with any Win32 C compiler (possibly with slight modifications)\&.
.LP
The purpose of the program is to aid release handling on Windows NT(R)\&. The program should be called by the \fIerlsrv\fR program, read up the release data file start_erl\&.data and start Erlang\&. Certain options to start_erl are added and removed by the release handler during upgrade with emulator restart (more specifically the \fI-data\fR option)\&.

.SH EXPORTS
.LP
.B
start_erl [<erl options>] ++ [<start_erl options>]
.br
.RS
.LP
The \fIstart_erl\fR program in its original form recognizes the following options:
.RS 2
.TP 4
.B
++:
Mandatory, delimits start_erl options from normal Erlang options\&. Everything on the command line \fIbefore\fR the \fI++\fR is interpreted as options to be sent to the \fIerl\fR program\&. Everything \fIafter\fR\fI++\fR is interpreted as options to \fIstart_erl\fR itself\&.
.TP 4
.B
-reldir <release root>:
Mandatory if the environment variable \fIRELDIR\fR is not specified\&. Tells start_erl where the root of the release tree is placed in the file-system (like <Erlang root>\ereleases)\&. The \fIstart_erl\&.data\fR file is expected to be placed in this directory (if not otherwise specified)\&.
.TP 4
.B
-data <data file name>:
Optional, specifies another data file than start_erl\&.data in the <release root>\&. It is specified relative to the <release root> or absolute (includeing drive letter etc\&.)\&. This option is used by the release handler during upgrade and should not be used during normal operation\&. The release data file should not normally be named differently\&.
.TP 4
.B
-bootflags <boot flags file name>:
Optional, specifies a file name relative to actual release directory (that is the subdirectory of <release root> where the \fI\&.boot\fR file etc\&. are placed)\&. The contents of this file is appended to the command line when Erlang is started\&. This makes it easy to start the emulator with different options for different releases\&.
.RE
.RE
.SH NOTES
.LP
As the source code is distributed, it can easily be modified to accept other options\&. The program must still accept the \fI-data\fR option with the semantics described above for the release handler to work correctly\&.
.LP
The Erlang emulator is found by examining the registry keys for the emulator version specified in the release data file\&. The new emulator needs to be properly installed before the upgrade for this to work\&.
.LP
Although the program is located together with files specific to emulator version, it is not expected to be specific to the emulator version\&. The release handler does \fInot\fR change the \fI-machine\fR option to \fIerlsrv\fR during emulator restart\&. Place the (possibly customized) \fIstart_erl\fR program so that it is not overwritten during upgrade\&. 
.LP
The \fIerlsrv\fR program\&'s default options are not sufficient for release handling\&. The machine \fIerlsrv\fR starts should be specified as the \fIstart_erl\fR program and the arguments should contain the \fI++\fR followed by desired options\&.
.SH SEE ALSO
.LP
erlsrv(1), release_handler(3)