Skip to content

Init Scripts

Calin Crisan edited this page Dec 27, 2019 · 11 revisions

How They Work

Init scripts are simple shell scripts that live in /etc/init.d. There's no dependency management, they are just run in alphabetical order. Naming of these scripts is therefore, important.

The scripts have the following naming convention:

S<XY><service_name>

S is a fixed letter, XY is a number of two digits (from 00 to 99) that dictates the order and service_name is the name given to the service. For example, S35wifi will start the WiFi service before S43firewall will start the firewall.

Manual Control

Writing An Init Script

Clone this wiki locally