runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

runit-init.8.html (2161B)


      1 
      2 
      3 
      4 <html>
      5 <head>
      6 <title>runit-init(8) manual page</title>
      7 </head>
      8 <body bgcolor='white'>
      9 <a href='http://smarden.org/pape/'>G. Pape</a><br><a href='index.html'>runit</A><hr><p>
     10 
     11 <h2><a name='sect0'>Name</a></h2>
     12 init - a UNIX process no 1 
     13 <h2><a name='sect1'>Synopsis</a></h2>
     14 <b>init</b> [ 0 | 6 ] 
     15 <h2><a name='sect2'>Description</a></h2>
     16 <b>runit-init</b>
     17 is the first process the kernel starts. If <b>runit-init</b> is started as process
     18 no 1, it runs and replaces itself with <i><b>runit</b>(8)</i>. <p>
     19 If <b>runit-init</b> is started
     20 while the system is up, it must be either called as <b>init 0</b> or <b>init 6:</b> 
     21 <dl>
     22 
     23 <dt><b>init
     24 0</b> </dt>
     25 <dd>tells the Unix process no 1 to shutdown and halt the system. To signal
     26 <i><b>runit</b>(8)</i> the system halt request, <b>runit-init</b> removes all permissions of
     27 the file <i>/etc/runit/reboot</i> (chmod 0), and sets the execute by owner permission
     28 of the file <i>/etc/runit/stopit</i> (chmod 100). Then a CONT signal is sent to
     29 <i><b>runit</b>(8)</i>. </dd>
     30 
     31 <dt><b>init 6</b> </dt>
     32 <dd>tells the Unix process no 1 to shutdown and reboot the
     33 system. To signal <i><b>runit</b>(8)</i> the system reboot request, <b>runit-init</b> sets the
     34 execute by owner permission of the files <i>/etc/runit/reboot</i> and <i>/etc/runit/stopit</i>
     35 (chmod 100). Then a CONT signal is sent to <i><b>runit</b>(8)</i>. </dd>
     36 </dl>
     37 
     38 <h2><a name='sect3'>Exit Codes</a></h2>
     39 <b>runit-init</b>
     40 returns 111 on error, 0 in all other cases. 
     41 <h2><a name='sect4'>See Also</a></h2>
     42 <i>runit(8)</i>, <i>runsvdir(8)</i>,
     43 <i>runsvchdir(8)</i>, <i>sv(8)</i>, <i>runsv(8)</i>, <i>chpst(8)</i>, <i>utmpset(8)</i>, <i>svlogd(8)</i> <p>
     44 <i>http://smarden.org/runit/</i>
     45 
     46 <h2><a name='sect5'>Author</a></h2>
     47 Gerrit Pape &lt;pape@smarden.org&gt; <p>
     48 
     49 <hr><p>
     50 <a name='toc'><b>Table of Contents</b></a><p>
     51 <ul>
     52 <li><a name='toc0' href='#sect0'>Name</a></li>
     53 <li><a name='toc1' href='#sect1'>Synopsis</a></li>
     54 <li><a name='toc2' href='#sect2'>Description</a></li>
     55 <li><a name='toc3' href='#sect3'>Exit Codes</a></li>
     56 <li><a name='toc4' href='#sect4'>See Also</a></li>
     57 <li><a name='toc5' href='#sect5'>Author</a></li>
     58 </ul>
     59 </body>
     60 </html>