Linux Init Systems: Overview and Distro Defaults

Listen to this Post

Featured Image
The init system is a fundamental part of Linux, responsible for starting the system, launching services, and managing processes. True to Linux’s flexibility, there are several init systems available, each offering different features and approaches.

Common Linux Init Systems:

1. SysVinit – Traditional init system, sequential startup.

  • Used in: Older Debian, RHEL/CentOS (before v7).
  1. Upstart – Event-based init system (developed by Ubuntu).

– Used in: Older Ubuntu versions (pre-15.04).
3. systemd – Modern, parallelized, and feature-rich init system.
– Used in: Ubuntu (15.04+), Debian (8+), RHEL/CentOS (7+), Fedora, Arch Linux.
4. OpenRC – Dependency-based init system (used in Gentoo, Alpine Linux).
5. runit – Lightweight and fast init system (used in Void Linux).

You Should Know:

Managing Services with `systemd` (Most Common)

  • Check service status:
    systemctl status servicename 
    
  • Start/Stop/Restart a service:
    sudo systemctl start servicename 
    sudo systemctl stop servicename 
    sudo systemctl restart servicename 
    
  • Enable/Disable at boot:
    sudo systemctl enable servicename 
    sudo systemctl disable servicename 
    
  • List all active services:
    systemctl list-units --type=service --state=running 
    

Working with `SysVinit` (Legacy Systems)

  • Start/Stop a service:
    sudo /etc/init.d/servicename start 
    sudo /etc/init.d/servicename stop 
    
  • Update service runlevels:
    sudo update-rc.d servicename defaults  Debian-based 
    sudo chkconfig servicename on  RHEL-based 
    

Using `OpenRC` (Gentoo/Alpine)

  • List services:
    rc-update show 
    
  • Add/Remove services:
    rc-update add servicename default 
    rc-update del servicename 
    

What Undercode Say:

Linux init systems define how your OS boots and manages services. While `systemd` dominates modern distros, understanding alternatives (OpenRC, runit) helps in lightweight or specialized environments. Always check your distro’s default init system before troubleshooting services.

Expected Output:

  • A functional service management approach based on your Linux distro.
  • Faster debugging of boot and service issues.

Prediction:

As containerization grows, lightweight init systems (runit, OpenRC) may see a resurgence in minimal and embedded Linux deployments.

Reference: Linux Init Systems Guide

References:

Reported By: Xmodulo The – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅

Join Our Cyber World:

💬 Whatsapp | 💬 Telegram