blob: 81e4e34914f5103bccbb094e704d79c811adb565 (
plain)
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
|
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>goetia-s6-linux-init</title>
<meta name="Description" content="goetia-s6-linux-init contains scripts and a configuration to run goetia using s6-linux-init." />
<meta name="Keywords" content="goetia s6 s6-rc s6-linux-init Linux init shutdown" />
</head>
<header>
<p>
<a href="//0x53.net/software/goetia">goetia</a>
<br />
<a href="//0x53.net/software">Software</a>
<br />
<a href="//0x53.net">0x53.net</a>
</p>
</header>
<body>
<h1>goetia-s6-linux-init</h1>
<h2>What is it?</h2>
<p>
goetia-s6-linux-init contains a configuration for
<a href="https://skarnet.org/software/s6-linux-init/">s6-linux-init</a>.
It also contains wrappers around some of s6-linux-inits commands
to make them fit the rest of goetia.
Finally, it contains service directories for some
s6-linux-init specific daemons.
</p>
<p>
The configuration is used by copying
the <code>s6-linux-init</code> directory in the
<a href="//0x53.net/software/goetia/installdir.html">installation directory</a>
to <code>/etc/s6-linux-init/goetia</code>,
<em>renaming</em> the directory in the process.
</p>
<p>
It is <em>critical</em>,
that some arguments given to <code>./configure</code>
during the installation of
<a href="https://skarnet.org/software/s6-linux-init/">s6-linux-init</a>
match those used in the goetia packages.
These are:
</p>
<ul>
<li>
<code>--tmpfsdir=...</code> which must be the same
in both the goetia packages and the s6-linux-init package.
The default is in both cases the same and can be left unchanged.
However, a change of this option in e.g.
<a href="//0x53.net/software/goetia/goetia-base">goetia-base</a>
mandates the exact same change of this option in s6-linux-init
and vice versa.
</li>
<li>
<code>--scandir=...</code> of s6-linux-init
which must match
<code>--sysrundir=...</code> in goetia.
This is by default <em>not</em> given.
If the default of goetia packages is kept,
<code>--scandir=system/service</code> has to be used
for s6-linux-init.
In general setting <code>--sysrundir=<var>@sysrundir@</var></code> on
goetia packages means having to set
<code>--scandir=<var>@sysrundir@</var>/service</code>
on s6-linux-init.
</li>
</ul>
<p>
Additionally two things in respect to the
<code>run-image</code> subdirectory of the
<a href="//0x53.net/software/goetia/confdir.html#system">system configuration directory</a>
change <em>for system supervision trees only</em>.
</p>
<ul>
<li>
The <code>run-image</code> subdirectory lies now at
<code>/etc/s6-linux-init/goetia/run-image</code>
instead of
<code><var>@sysconfdir@</var>/system/run-image</code>.
</li>
<li>
When using s6-linux-init, the <code>run-image</code> is now
copied to <code><var>@tmpfsdir@</var></code> instead of
<code><var>@tmpfsdir@</var>/<var>@sysrundir@</var>/system</code>.
This has to be accomodated for by adding an additional <code>system</code>
subdirectory between the <code>run-image</code> and the <code>service</code>
directory.
To make it more clear: this results in:
<code>/etc/s6-linux-init/goetia/run-image/system/service/</code>
instead of
<code>/etc/goetia/system/run-image/service/</code>
with goetia-linux-init.
Bear in mind that this has to be further corrected for every non standard
<code>--sysrundir=...</code> setting in the goetia packages.
</li>
</ul>
<p>
If all defaults are kept on the other geotia packages,
this means the following in practice:
</p>
<ul>
<li>
During the installation of s6-linux-init, run at least <code>./configure --scandir=system/service</code>.
</li>
<li>
Symlink or copy
<a href="https://skarnet.org/software/s6/servicedir.html">service directories</a>
to <code>/etc/s6-linux-init/goetia/run-image/system/service/</code>.
</li>
</ul>
<hr>
<h2>Installation</h2>
<h3>Requirements</h3>
<ul>
<li>
A set of POSIX tools as described in the general
<a href="//0x53.net/software/requirements.html">requirements</a>
</li>
<li>
A POSIX-compliant implementation of make, or GNU make
</li>
<li>
<a href="https://skarnet.org/software/s6-linux-init/">s6-linux-init</a>
</li>
</ul>
<h3>Licensing</h3>
<p>
goetia-s6-linux-init is free software. It is available under the
<a href="https://opensource.org/licenses/ISC">ISC license</a>.
</p>
<h3>Download</h3>
<ul>
<!--
<li>
The current released version of goetia-s6-linux-init is
<a href="./goetia-s6-linux-init-0.0.1.0.tar.gz">0.0.1.0</a>.
You can access its checksum
<a href="./goetia-s6-linux-init-0.0.1.0.tar.gz.sha256">here</a>.
</li>
-->
<li>
Alternatively, you can checkout a copy of the
<a href="https://git.0x53.net/goetia-s6-linux-init">goetia-s6-linux-init git repository</a>:
<pre>git clone git://git.0x53.net/goetia-s6-linux-init</pre>
</li>
</ul>
<h3>Compilation</h3>
<ul>
<li>
See the enclosed INSTALL file for installation details.
</li>
</ul>
<hr>
<h2>Reference</h2>
<section id="bin">
<h3>Commands</h3>
<p>
All of the following are
<a href="https://skarnet.org/software/execline/">execline</a>
scripts.
</p>
<ul>
<li>
<a href="./bin/system-init.html">system-init</a>
</li>
<li>
<a href="./bin/system-shutdown.html">system-shutdown</a>
</li>
</ul>
</section>
<section id="service">
<h3>Service directories</h3>
<p>
Service directories specific to the Linux Kernel
and to this init system.
</p>
<ul>
<li>
<a href="./service/system/.s6-svscan.html">.s6-svscan</a>
</li>
<li>
<a href="./service/system/s6-linux-init-runleveld.html">s6-linux-init-runleveld</a>
</li>
<li>
<a href="./service/system/s6-linux-init-shutdownd.html">s6-linux-init-shutdownd</a>
</li>
</ul>
</section>
</body>
</html>
|