|/
|\ISS

News
Blog

Wiki (NEW!)

Install KISS
FAQ

Package System
Package Manager
Software

Guidestones

Testimonials
Screenshots
Team

Contact
Donate

GitHub
Git (mirror)


wiki / init / changing-init                                       Edit this page

Edited (245674e) at 2020-06-28 by Dylan Araps


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]


[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                                                                 |
+------------------------------------------------------------------------------+
|                                                                              |
|   $ 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                                             |
|                                                                              |
+------------------------------------------------------------------------------+


________________________________________________________________________________

Dylan Araps (C) 2019-2020

Linux(R) is the registered trademark of Linus Torvalds in the U.S. and
other countries.