summaryrefslogtreecommitdiff
path: root/doc/quickstart.html
blob: 253429f78ba4bc1b2e1db811917505ea42064777 (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
<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="Content-Language" content="en" />
    <title>s6-linux-init: quickstart</title>
    <meta name="Description" content="s6-linux-init: quickstart" />
    <meta name="Keywords" content="s6-linux-init installation quickstart quick start" />
    <!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> -->
  </head>
<body>

<p>
<a href="index.html">s6-linux-init</a><br />
<a href="//skarnet.org/software/">Software</a><br />
<a href="//skarnet.org/">skarnet.org</a>
</p>

<h1> Quickstart for s6-linux-init </h1>

<h2> Quickstart </h2>

<ol>
 <li> Install all the s6-linux-init dependencies:
  <ul>
   <li> <a href="//skarnet.org/software/skalibs/">skalibs</a> </li>
   <li> <a href="//skarnet.org/software/execline/">execline</a> </li>
   <li> <a href="//skarnet.org/software/s6/">s6</a> </li>
  </ul> </li>
 <li> Save and remove your old <tt>/etc/s6-linux-init</tt> directory, if you have one. </li>
 <li> Install <a href="index.html">s6-linux-init</a> itself. </li>
 <li> Save your old <tt>/sbin/init</tt>, <tt>/sbin/telinit</tt>, <tt>/sbin/shutdown</tt>,
<tt>/sbin/halt</tt>, <tt>/sbin/poweroff</tt> and <tt>/sbin/reboot</tt> binaries. </li>
 <li> Make sure you have a <tt>/run</tt> directory. </li>
 <li> Edit the scripts in <tt>/etc/s6-linux-init/skel</tt>. </li>
 <li> Check that your devtmpfs is automounted by your kernel at boot time. If it is not,
add the <tt>-d /dev</tt> option to the <tt>s6-linux-init-maker</tt> command line below. </li>
 <li> As root, run: <pre>
     rm -rf /tmp/blah
     s6-linux-init-maker -1 -G "/sbin/getty 38400 tty1" /tmp/blah
     rm -rf /etc/s6-linux-init/current
     mv /tmp/blah /etc/s6-linux-init/current
     cp -a /etc/s6-linux-init/current/bin/* /sbin/ </pre> </li>
 <li> Reboot. Warning: use your <em>old</em> reboot command, that you saved, not the new one
that has just been created by <tt>s6-linux-init-maker</tt>, because you're still running on
your old init system and need to use a reboot command that matches it. </li>
 <li> After the reboot: congratulations! your machine is now running a s6-based init system. </li>
 <li> To shut the machine down, use <tt>/sbin/shutdown</tt>, <tt>/sbin/halt</tt>,
<tt>/sbin/poweroff</tt> or <tt>/sbin/reboot</tt> as usual. </li>
</ol>

</body>
</html>