from small one page howto to huge articles all in one place
 

search text in:




Other .linuxhowtos.org sites: www.linuxhowtos.org
toolsntoys.linuxhowtos.org



Last additions:
How to make X listen on port 6000

How to make X listen on port 6000

words:

34

views:

43503

userrating:

average rating: 1.5 (4 votes) (1=very good 6=terrible)


May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Tips&Tricks

Displaying Runlevels

This tip is about a couple of utilities to help you deal with init scripts and runlevels. Gentoo Linux has four main runlevels: boot, default, nonetwork, single. To manipulate these, use the /sbin/rc-update command. While rc-update add and rc-update del are covered in the Gentoo Docs, you may be wondering how to see the runlevels a service is in. This is done with the rc-update show command.

Code Listing 8.1: rc-update show

// Show all services and their runlevels 
# rc-update show 
             apache2 |      default                   
                 atd |      default                   
         authdaemond |                                
            bootmisc | boot                           
             checkfs | boot                           
           checkroot | boot                           
...many more lines truncated...

Note: You can also look in /etc/runlevels. Each runlevel is a separate directory and in those directories are symlinks to the various services in /etc/init.d.

Another useful tool is rc-status which made its way into baselayout with Bug #4222. It tells you which services are currently running:

Code Listing 8.2: rc-status

// Show which services are running 
# rc-status 
Runlevel: default 
  apache2                                                            [ started ] 
  atd                                                                [ started ] 
  cupsd                                                              [ started ] 
  dcron                                                              [ started ] 
  ddclient                                                           [ started ] 
  local                                                              [ off     ] 
...and many more lines...

Finally, sometimes you may want to start all the services in your current runlevel that aren't running (because you stopped them). Simply type rc to start all the missing services.


rate this article:
current rating: average rating: 1.1 (66 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2018-11-14
2018-11-13
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2018 Sascha Nitsch Unternehmensberatung UG(haftungsbeschänkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 72.7 ms