blob: fd4ee14048c83aa06708657eb73c659d36bd1b58 (
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
|
<HTML>
<HEAD>
<TITLE>runit-init(8) manual page</TITLE>
</HEAD>
<BODY bgcolor=white>
<a href="http://smarden.org/pape/">G. Pape</a><br><A HREF="index.html">runit</A><hr><P>
<H2><A NAME="sect0">Name</A></H2>
init - a UNIX process no 1
<H2><A NAME="sect1">Synopsis</A></H2>
<B>init</B> [ 0 | 6 ]
<H2><A NAME="sect2">Description</A></H2>
<B>runit-init</B>
is the first process the kernel starts. If <B>runit-init</B> is started as process
no 1, it runs and replaces itself with <B><I>runit</B>(8)</I>. <P>
If <B>runit-init</B> is started
while the system is up, it must be either called as <B>init 0</B> or <B>init 6:</B>
<DL>
<DT><B>init
0</B> </DT>
<DD>tells the Unix process no 1 to shutdown and halt the system. To signal
<B><I>runit</B>(8)</I> the system halt request, the <I>/etc/runit/reboot</I> file is removed
and <I>/etc/runit/stopit</I> is touched. Then a CONT signal is sent to <B><I>runit</B>(8)</I>.
</DD>
<DT><B>init 6</B> </DT>
<DD>tells the Unix process no 1 to shutdown and reboot the system. To
signal <B><I>runit</B>(8)</I> the system reboot request, the <I>/etc/runit/reboot</I> and <I>/etc/runit/stopit</I>
files are touched. Then a CONT signal is sent to <B><I>runit</B>(8)</I>. </DD>
</DL>
<H2><A NAME="sect3">Exit Codes</A></H2>
<B>runit-init</B>
returns 111 on error, 0 in all other cases.
<H2><A NAME="sect4">See Also</A></H2>
<I>runit(8)</I>, <I>svwaitdown(8)</I>,
<I>svwaitup(8)</I> <P>
<I>http://smarden.org/runit/</I>
<H2><A NAME="sect5">Author</A></H2>
Gerrit Pape <pape@smarden.org>
<P>
<HR><P>
<A NAME="toc"><B>Table of Contents</B></A><P>
<UL>
<LI><A NAME="toc0" HREF="#sect0">Name</A></LI>
<LI><A NAME="toc1" HREF="#sect1">Synopsis</A></LI>
<LI><A NAME="toc2" HREF="#sect2">Description</A></LI>
<LI><A NAME="toc3" HREF="#sect3">Exit Codes</A></LI>
<LI><A NAME="toc4" HREF="#sect4">See Also</A></LI>
<LI><A NAME="toc5" HREF="#sect5">Author</A></LI>
</UL>
</BODY></HTML>
|