Enjoy Slackware 15.0!

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howtos:slackware_admin:runit [2019/09/17 04:57 (UTC)]
aaditya [4. How to replace init with runit] add more info and try to simplify it
howtos:slackware_admin:runit [2020/05/06 08:08 (UTC)]
chrisabela [Startup and Shutdown]
Line 11: Line 11:
 To read on the benefits of runit, see here: http://smarden.org/runit/benefits.html To read on the benefits of runit, see here: http://smarden.org/runit/benefits.html
  
-Unless otherwise stated, all commands in this article are to be run by root.+//* Unless otherwise stated, all commands in this article are to be run by root.//
  
 ===== Use runit with traditional init (sysvinit) ===== ===== Use runit with traditional init (sysvinit) =====
Line 190: Line 190:
 ==== Startup and Shutdown ==== ==== Startup and Shutdown ====
  
-The bsd style init scripts provided by Slackware are used to bring up the system.+The BSD style init scripts provided by Slackware are used to bring up the system.
  
 Initially the single user script ''/etc/rc.d/rc.S'' runs. If set in the default runlevel 3, it follows it with ''/etc/rc.d/rc.M''. In runit the initialisation script is located in ''/etc/runit/1'' for all runlevels. By default ''/etc/runit/2'' is restricted to the TTY services.  Initially the single user script ''/etc/rc.d/rc.S'' runs. If set in the default runlevel 3, it follows it with ''/etc/rc.d/rc.M''. In runit the initialisation script is located in ''/etc/runit/1'' for all runlevels. By default ''/etc/runit/2'' is restricted to the TTY services. 
Line 454: Line 454:
 Only one executable can be called for a service (the last line) and it must be called by the ''exec'' command. There are some generic runit run scripts on the Internet and on other Linux distributions. Also, other Slackers may post them on publicly available repositories. The author of this article has placed his here: https://gitlab.com/chrisabela/runit_scripts_for_slackware Only one executable can be called for a service (the last line) and it must be called by the ''exec'' command. There are some generic runit run scripts on the Internet and on other Linux distributions. Also, other Slackers may post them on publicly available repositories. The author of this article has placed his here: https://gitlab.com/chrisabela/runit_scripts_for_slackware
  
-Another set of installable run scripts are available at [[https://slackbuilds.org/repository/14.2/system/runit-services/|SBo]]. (currently pending)+Another set of installable run scripts are available at [[https://slackbuilds.org/repository/14.2/system/runit-services/|SBo]].
  
 In direct contrast to Slackware's BSD style service scripts, runit run scripts must not must run in the foreground, otherwise runit would think that they have crashed and restart them. In direct contrast to Slackware's BSD style service scripts, runit run scripts must not must run in the foreground, otherwise runit would think that they have crashed and restart them.
Line 525: Line 525:
 ==== OpenRC ==== ==== OpenRC ====
  
-Here ''runit-init'' is used for booting, which then transfers control to the OpenRC init services for things like mounting the filesystem, loading modules, running udev, etc.+Here ''runit-init'' is used for booting, which then transfers control to the OpenRC for things like mounting the filesystem, loading modules, running udev, etc.
  
-It requires a working OpenRC system. Check the [[howtos:general_admin:openrc]] page on how it can be done.+It requires a working OpenRC system. Check the [[howtos:general_admin:openrc]] page for instructions.
 The level 1 runit service uses the OpenRC ''boot'' and ''sysinit'' runlevels. The level 1 runit service uses the OpenRC ''boot'' and ''sysinit'' runlevels.
  
-Check the [[https://wiki.gentoo.org/wiki/Runit#Runit_as_the_init_system|gentoo wiki]] for more info, and [[https://gitlab.com/aadityabagga/runit-init-openrc|runit-init-openrc]] on how to install and set it up.+The [[https://wiki.gentoo.org/wiki/Runit#Runit_as_the_init_system|gentoo wiki]] has more information, and [[https://gitlab.com/aadityabagga/runit-init-openrc|runit-init-openrc]] details how to install and set it up.
  
 ==== void-runit ==== ==== void-runit ====
Line 539: Line 539:
  
 ===== Sources ===== ===== Sources =====
-  
-(1) http://smarden.org/runit/ 
- 
-(2) https://slackbuilds.org 
- 
-(3) https://en.wikipedia.org/wiki/Init 
- 
-(4) https://voidlinux.org/usage/runit/ 
- 
-(5) https://www.youtube.com/watch?v=jiBlIhFxNJo 
- 
-(6) http://kchard.github.io/runit-quickstart/ 
- 
-(7) https://www.slackbook.org/beta/ 
- 
-(8) https://gitlab.com/chrisabela/runit_scripts_for_slackware 
  
-(9) https://wiki.gentoo.org/wiki/Runit+  - http://smarden.org/runit/ 
 +  - https://en.wikipedia.org/wiki/Init 
 +  - https://voidlinux.org/usage/runit/ 
 +  - https://www.youtube.com/watch?v=jiBlIhFxNJo 
 +  - http://kchard.github.io/runit-quickstart/ 
 +  - https://www.slackbook.org/beta/ 
 +  - https://gitlab.com/chrisabela/runit_scripts_for_slackware 
 +  - https://github.com/aadityabagga/runit-services 
 +  - https://wiki.gentoo.org/wiki/Runit 
 +  - https://github.com/void-linux/void-runit
  
-(10) https://github.com/void-linux/void-runit+----
  
   * Written for Slackware 14.2 in December 2018   * Written for Slackware 14.2 in December 2018

In Other Languages
QR Code
QR Code howtos:slackware_admin:runit (generated for current page)