Gentoo Linux - Viewing and Managing Runlevels

January 2017

[Gentoo Linux] Viewing and Managing Runlevels



A small way to manage the init scripts and runlevels under Gentoo.
The Gentoo Linux distribution consists of 4 main levels of runlevels:
  • boot
  • default
  • nonetwork
  • single


To handle, it is recommended to use the command /sbin/rc-update.
  • Adding a service at startup

#rc-update add script <runlevels>

Or
#rc-update -a script <runlevels>
    • Example

# rc-update add MySQL default 
  • Deleting a service at startup


#rc-update del script <runlevels>

Or
#rc-update -d script <runlevels>
    • Example

# rc-update del MySQL default
  • Display service at startup


#rc-update show

Or
#rc-update -s
  • Display the status of services at Startup

#rc-status

Related


Published by jak58. Latest update on August 6, 2009 at 02:31 PM by jak58.
This document, titled "Gentoo Linux - Viewing and Managing Runlevels," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).