Init

From MEPIS Documentation Wiki

Jump to: navigation, search

This article or section is a stub. You can help Mepis Documentation Project by expanding it.

Contents

What is the Init System

The Init system manages what the system will do on startup, shutdown, and restart. It is used for starting up system services that do not require interaction. It also can start X or a display manager.

Directories

In MEPIS the used directories are:

  • /etc/init.d/
  • /etc/rc0.d/
  • /etc/rc1.d/
  • /etc/rc2.d/
  • /etc/rc3.d/
  • /etc/rc4.d/
  • /etc/rc5.d/
  • /etc/rc6.d/
  • /etc/rcS.d/
  • /etc/rc.firewall/

/etc/init.d/ contains all of the scripts, each one is available there. The other directories all contain runlevels

Init scripts

An Init script is a script that starts up a service. It should not be interactive and responds one of the following arguments:

  • Start
  • Stop
  • Restart

All scripts are found in the /etc/init.d/ directory.
The following code is a example of how to start or stop a script by hand:

/etc/init.d/kdm start
/etc/init.d/kdm stop
/etc/init.d/kdm restart

Runlevels

Updating and removing unneeded services/scripts

Writing your own Init script

Personal tools