Gentoo Linux - Viewing and Managing Runlevels

December 2016

[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 :

This document entitled « Gentoo Linux - Viewing and Managing Runlevels » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.