Frequent Question: What Is Init Script in Linux?
Contents

The scripts that the rc process starts are called init scripts. Each script in /etc/init. d can be executed with the arguments start, stop, restart, pause, zap, status, ineed, iuse, needsme, usesme and broken. To start, stop or restart a service (and all depending services), start, stop and restart should be used.

What is init service in Linux?

It is the first process executed by the kernel during the booting of a system. It is a daemon process which runs till the system is shutdown. That is why, it is the parent of all the processes. First of all, init reads the script stored in the file /etc/inittab.

How do I run an init script?

The following procedure describes how to add a run control script.

  1. Become superuser or assume a role that includes the Service Management rights profile. …
  2. Add the script to the /etc/init. …
  3. Create links to the appropriate rc n . …
  4. Verify that the script has links in the specified directories.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest