Alpine Linux Init System

From Alpine Linux

Jump to: navigation, search

Contents

Alpine Linux Init System

Alpine Linux uses OpenRC for its init system.

Quick-Start Information

Alpine Linux has the following commands for managing the init system:

Equivalent to /etc/init.d/service <start stop restart>
To check services and their set runlevels
To change to a different runlevel
Equivalent to shutdown -r now from traditional GNU/Linux systems
Equivalent to shutdown -h now from traditional GNU/Linux systems
Tip: Prior to Alpine Linux 2.0.0, you might need to use the following commands instead: rc_add, rc_delete, and rc_status.

Available Runlevels

The available runlevels are:

The special runlevels are:

rc-update usage

Usage: rc-update [options] add service <runlevel>
       rc-update [options] del service <runlevel>
       rc-update [options] show

Options: [suChqv]
  -s, --stack                       Stack a runlevel instead of a service
  -u, --update                      Force an update of the dependency tree
  -h, --help                        Display this help output
  -C, --nocolor                     Disable color output
  -v, --verbose                     Run verbosely
  -q, --quiet                       Run quietly

rc-status usage

Usage: rc-status [options] [runlevel1] [runlevel2] ...

Options: [aclrsuChqv]
  -a, --all                         Show services from all run levels
  -c, --crashed                     Show crashed services
  -l, --list                        Show list of run levels
  -r, --runlevel                    Show the name of the current runlevel
  -s, --servicelist                 Show service list
  -u, --unused                      Show services not assigned to any runlevel
  -h, --help                        Display this help output
  -C, --nocolor                     Disable color output
  -v, --verbose                     Run verbosely
  -q, --quiet                       Run quietly
Personal tools
Namespaces
Variants
Actions
Welcome
Services
Wiki
Toolbox