runit

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

runit-init.8 (1236B)


      1 .TH runit-init 8
      2 .SH NAME
      3 init \- a UNIX process no 1
      4 .SH SYNOPSIS
      5 .B init
      6 [ 0 | 6 ]
      7 .SH DESCRIPTION
      8 .B runit-init
      9 is the first process the kernel starts.
     10 If
     11 .B runit-init
     12 is started as process no 1, it runs and replaces itself with
     13 .BR runit (8).
     14 .P
     15 If
     16 .B runit-init
     17 is started while the system is up, it must be either called as
     18 .B init 0
     19 or
     20 .B init 6\fR:
     21 .TP
     22 .B init 0
     23 tells the Unix process no 1 to shutdown and halt the system.
     24 To signal
     25 .BR runit (8)
     26 the system halt request,
     27 .B runit-init
     28 removes all permissions of the file
     29 .I /etc/runit/reboot
     30 (chmod 0), and sets the execute by owner permission of the file
     31 .I /etc/runit/stopit
     32 (chmod 100).
     33 Then a CONT signal is sent to
     34 .BR runit (8).
     35 .TP
     36 .B init 6
     37 tells the Unix process no 1 to shutdown and reboot the system.
     38 To signal
     39 .BR runit (8)
     40 the system reboot request,
     41 .B runit-init
     42 sets the execute by owner permission of the files
     43 .I /etc/runit/reboot
     44 and
     45 .I /etc/runit/stopit
     46 (chmod 100). Then a CONT signal is sent to
     47 .BR runit (8).
     48 .SH EXIT CODES
     49 .B runit-init
     50 returns 111 on error, 0 in all other cases.
     51 .SH SEE ALSO
     52 runit(8),
     53 runsvdir(8),
     54 runsvchdir(8),
     55 sv(8),
     56 runsv(8),
     57 chpst(8),
     58 utmpset(8),
     59 svlogd(8)
     60 .P
     61 http://smarden.org/runit/
     62 .SH AUTHOR
     63 Gerrit Pape <pape@smarden.org>