gentoo.LinuxHowtos.orgedit this article

Gentoo Initscripts


This article has a look at some nice to know things about initscripts that every sysadmin and user should at least have heard of once.

By installing and administering your installation of Gentoo Linux you will have learned about how to add services to a specific runlevel, and how to start and stop those services.

But most users are not aware of some other nifty functions in the Gentoo initscripts that have the potential for making their lives easier in administering their Gentoo boxes.

Q: What to do if I can't stop a service? What if the processes were killed but my system thinks they are still running?
A: Execute /etc/init.d/ zap to reset the status of the service.

Q: How do I figure out if a service is running or not?
A: /etc/init.d/ status will tell you the current status of the given service.

Q: And while we're at it, how can I see all services running?
A: rc-status lists all services that have been started and their current status.

Q: How to restart a service?
A: /etc/init.d/ restart restarts the service.

Q: How do I find out what other services have to be started when I want to use ?
A: /etc/init.d/ ineed will give you a list of services that need to be running before this service can be started.

Q: Which services need/depend on this ?
A: /etc/init.d/ needsme lists all services that depend on the service given.

For further information on how runlevels work in Gentoo Linux please take a look at the Initscript guide that is part of the Gentoo System Documentation.


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

back