kisscommunity

kisscommunity.bvnf.space site sources
git clone git://bvnf.space/home/kiss/kisscommunity.git
Log | Files | Refs | Submodules | README | LICENSE

index.txt (6322B)


      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
Changing Init Systems
________________________________________________________________________________

KISS' default init system and service manager are provided by busybox. The
service manager being an independent implementation of runit's utilities. This
default should work with all system configurations though one may still wish to
swap to the init system and service manager of their choosing.

This is very easily done via the package manager's alternatives system as
nothing is tightly coupled or dependent on a specific init or service manager.


[0.0] Index
________________________________________________________________________________

- Rebooting after switching init systems                                   [1.0]
- runit                                                                    [2.0]
- Hummingbird                                                              [3.0]
    - Setting up runsvdir                                                  [3.1]


[1.0] Rebooting after switching init systems
________________________________________________________________________________

After switching init systems, your running init system may not accept the
new poweroff commands. You will need to reboot/poweroff using the running init's
utilities for the new utilities to work. These commands are for the init system
currently running on your system and not the one you are switching to.

+------------------------------------------------------------------------------+
| Busybox                                                                      |
+------------------------------------------------------------------------------+
|                                                                              |
|   $ busybox reboot                                                           |
|                                                                              |
+------------------------------------------------------------------------------+
| Runit                                                                        |
+------------------------------------------------------------------------------+
|                                                                              |
|   $ runit-init 6                                                             |
|                                                                              |
+------------------------------------------------------------------------------+
| sinit/shinit and Hummingbird                                                 |
+------------------------------------------------------------------------------+
|                                                                              |
|   $ kill -s INT 1                                                            |
|                                                                              |
+------------------------------------------------------------------------------+


[2.0] runit
________________________________________________________________________________

Begin by first verifying that runit is installed.

+------------------------------------------------------------------------------+
|                                                                              |
|   # Available in the Community repository.                                   |
|   $ kiss b runit && kiss i runit                                             |
|                                                                              |
+------------------------------------------------------------------------------+

Finally, use the alternatives system to swap to runit.

+------------------------------------------------------------------------------+
|                                                                              |
|   # See #/package-manager#3.2 for more information.                          |
|   $ kiss a runit /usr/bin/init                                               |
|   $ kiss a runit /usr/bin/poweroff                                           |
|   $ kiss a runit /usr/bin/reboot                                             |
|                                                                              |
+------------------------------------------------------------------------------+


[3.0] Hummingbird
________________________________________________________________________________

Make sure to install Hummingbird.

+------------------------------------------------------------------------------+
|                                                                              |
|   # Available in the Community repository.                                   |
|   $ kiss b hummingbird-git && kiss i hummingbird-git                         |
|                                                                              |
+------------------------------------------------------------------------------+

Then, swap to Hummingbird by using the alternatives system.

+------------------------------------------------------------------------------+
|                                                                              |
|   $ kiss a hummingbird-git /usr/bin/init                                     |
|   $ kiss a hummingbird-git /usr/bin/reboot                                   |
|                                                                              |
+------------------------------------------------------------------------------+

Once you have booted using Hummingbird, take note that the command used to
turn the system off is "shutdown".


    [3.1] Setting up runsvdir
    ____________________________________________________________________________

    Hummingbird doesn't provide a service manager, and doesn't read from
    inittab either. Some people find it useful to have one, such as runsvdir.

    +--------------------------------------------------------------------------+
    |                                                                          |
    |   $ mkdir /etc/rc.d                                                      |
    |   $ echo 'runsvdir -P /var/service &' > /etc/rc.d/runsvdir.boot          |
    |                                                                          |
    +--------------------------------------------------------------------------+