aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sasl/doc/src/rel.xml
blob: 68ef90330f3c8a5bac19454b6d952cd565aa386e (plain) (blame)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?xml version="1.0" encoding="latin1" ?>
<!DOCTYPE fileref SYSTEM "fileref.dtd">

<fileref>
  <header>
    <copyright>
      <year>1997</year>
      <year>2012</year>
      <holder>Ericsson AB, All Rights Reserved</holder>
    </copyright>
    <legalnotice>
  The contents of this file are subject to the Erlang Public License,
  Version 1.1, (the "License"); you may not use this file except in
  compliance with the License. You should have received a copy of the
  Erlang Public License along with this software. If not, it can be
  retrieved online at http://www.erlang.org/.

  Software distributed under the License is distributed on an "AS IS"
  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
  the License for the specific language governing rights and limitations
  under the License.

  The Initial Developer of the Original Code is Ericsson AB.
    </legalnotice>

    <title>rel</title>
    <prepared></prepared>
    <docno></docno>
    <date></date>
    <rev></rev>
  </header>
  <file>rel</file>
  <filesummary>Release resource file</filesummary>
  <description>
    <p>The <em>release resource file</em> specifies which applications are
      are included in a release (system) based on Erlang/OTP.</p>
    <p>This file is used by the functions in <c>systools</c> when generating
      start scripts (<c>.script</c>, <c>.boot</c>) and release upgrade
      files (<c>relup</c>).</p>
  </description>

  <section>
    <title>FILE SYNTAX</title>
    <p>The release resource file should be called <c>Name.rel</c>.</p>
    <p>The <c>.rel</c> file contains one single Erlang term, which is
      called a <em>release specification</em>.  The file has the
      following syntax:</p>
    <code type="none">
{release, {RelName,Vsn}, {erts, EVsn},
  [{Application, AppVsn} |
   {Application, AppVsn, Type} |
   {Application, AppVsn, IncApps} |
   {Application, AppVsn, Type, IncApps}]}.
    </code>
    <list type="bulleted">
      <item>
        <p><c>RelName = string()</c> is the name of the release.</p>
      </item>
      <item>
        <p><c>Vsn = string()</c> is the version of the release.</p>
      </item>
      <item>
        <p><c>EVsn = string()</c> is the version of ERTS the release is
          intended for.</p>
      </item>
      <item>
        <p><c>Application = atom()</c> is the name of an application
          included in the release.</p>
      </item>
      <item>
        <p><c>AppVsn = string()</c> is the version of an application
          included in the release.</p>
      </item>
      <item>
        <p><c>Type = permanent | transient | temporary | load | none</c>
          is the start type of an application included in the release.</p>
        <p>If <c>Type = permanent | transient | temporary</c>,
          the application will be loaded and started in the corresponding
          way, see <c>application(3)</c>. If <c>Type = load</c>,
          the application will only be loaded. If <c>Type = none</c>,
          the application will be neither loaded nor started, although
          the code for its modules will be loaded.
          Defaults to <c>permanent</c></p>
      </item>
      <item>
        <p><c>IncApps = [atom()]</c> is a list of applications that are
          included by an application included in the release.</p>
        <p>The list must be a subset of the included applications
          specified in the application resource file
          (<c>Application.app</c>) and overrides this value. Defaults
          to the same value as in the application resource file.</p>
      </item>
    </list>
    <note>
      <p>The list of applications must contain the <c>kernel</c> and
        <c>stdlib</c> applications.</p>
    </note>
  </section>

  <section>
    <title>SEE ALSO</title>
    <p>application(3), relup(4), systools(3)</p>
  </section>
</fileref>