<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cs94njw</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cs94njw"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Cs94njw"/>
	<updated>2026-05-03T00:10:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=OpenRC&amp;diff=13141</id>
		<title>OpenRC</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=OpenRC&amp;diff=13141"/>
		<updated>2017-02-10T10:10:02Z</updated>

		<summary type="html">&lt;p&gt;Cs94njw: &amp;#039;needed&amp;#039; is unsupported. &amp;quot; * rc-update: `needed&amp;#039; is not a valid runlevel&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Quick-Start Information ==&lt;br /&gt;
Alpine Linux uses [https://wiki.gentoo.org/wiki/OpenRC OpenRC] for its init system.&lt;br /&gt;
&lt;br /&gt;
The following commands are available to manage the init system:&lt;br /&gt;
* {{Cmd|rc-update add &amp;lt;service&amp;gt; &amp;lt;runlevel&amp;gt;}}&lt;br /&gt;
* {{Cmd|rc-update del &amp;lt;service&amp;gt; &amp;lt;runlevel&amp;gt;}}&lt;br /&gt;
* {{Cmd|rc-service &amp;lt;service&amp;gt; &amp;lt;start stop restart&amp;gt;}}&lt;br /&gt;
: Equivalent to &amp;lt;code&amp;gt;/etc/init.d/service &amp;lt;start stop restart&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* {{Cmd|rc-status}}&lt;br /&gt;
: To check services and their set runlevels&lt;br /&gt;
* {{Cmd|rc &amp;lt;runlevel&amp;gt;}}&lt;br /&gt;
: To change to a different runlevel&lt;br /&gt;
* {{Cmd|reboot}}&lt;br /&gt;
: Equivalent to &amp;lt;code&amp;gt;shutdown -r now&amp;lt;/code&amp;gt; from traditional GNU/Linux systems&lt;br /&gt;
* {{Cmd|halt}}&lt;br /&gt;
: Equivalent to &amp;lt;code&amp;gt;shutdown -h now&amp;lt;/code&amp;gt; from traditional GNU/Linux systems&lt;br /&gt;
* {{Cmd|poweroff}}&lt;br /&gt;
: To turn off the machine&lt;br /&gt;
&lt;br /&gt;
{{Tip|Prior to Alpine Linux 2.0.0, you might need to use the following commands instead: &#039;&#039;rc_add, rc_delete,&#039;&#039; and &#039;&#039;rc_status&#039;&#039;.}}&lt;br /&gt;
&lt;br /&gt;
== Available Runlevels ==&lt;br /&gt;
The available runlevels are:&lt;br /&gt;
* &#039;&#039;&#039;default&#039;&#039;&#039; - Used if no runlevel is specified. (This is generally the runlevel you want to add services to.)&lt;br /&gt;
* &#039;&#039;&#039;hotplugged&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;manual&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The special runlevels are:&lt;br /&gt;
* &#039;&#039;&#039;sysinit&#039;&#039;&#039; - Brings up any system specific stuff such as &amp;lt;code&amp;gt;/dev&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;/proc&amp;lt;/code&amp;gt; and optionally &amp;lt;code&amp;gt;/sys&amp;lt;/code&amp;gt; for Linux based systems. It also mounts &amp;lt;code&amp;gt;/lib/rc/init.d&amp;lt;/code&amp;gt; as a ramdisk using tmpfs where available unless &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; is mounted rw at boot. &amp;lt;code&amp;gt;&#039;&#039;&#039;rc&#039;&#039;&#039;&amp;lt;/code&amp;gt; uses &amp;lt;code&amp;gt;/lib/rc/init.d&amp;lt;/code&amp;gt; to hold state information about the services it runs. sysinit always runs when the host first starts and should not be run again.&lt;br /&gt;
* &#039;&#039;&#039;boot&#039;&#039;&#039; - Generally the only services you should add to the boot runlevel are those which deal with the mounting of filesystems, set the initial state of attached peripherals and logging. Hotplugged services are added to the boot runlevel by the system. All services in the boot and sysinit runlevels are automatically included in all other runlevels except for those listed here.&lt;br /&gt;
* &#039;&#039;&#039;single&#039;&#039;&#039; - Stops all services except for those in the sysinit runlevel.&lt;br /&gt;
* &#039;&#039;&#039;reboot&#039;&#039;&#039; - Changes to the shutdown runlevel and then reboots the host.&lt;br /&gt;
* &#039;&#039;&#039;shutdown&#039;&#039;&#039; - Changes to the shutdown runlevel and then halts the host.&lt;br /&gt;
&lt;br /&gt;
== rc-update usage ==&lt;br /&gt;
 Usage: rc-update [options] add service &amp;lt;runlevel&amp;gt;&lt;br /&gt;
        rc-update [options] del service &amp;lt;runlevel&amp;gt;&lt;br /&gt;
        rc-update [options] show&lt;br /&gt;
 &lt;br /&gt;
 Options: [suChqv]&lt;br /&gt;
   -s, --stack                       Stack a runlevel instead of a service&lt;br /&gt;
   -u, --update                      Force an update of the dependency tree&lt;br /&gt;
   -h, --help                        Display this help output&lt;br /&gt;
   -C, --nocolor                     Disable color output&lt;br /&gt;
   -v, --verbose                     Run verbosely&lt;br /&gt;
   -q, --quiet                       Run quietly&lt;br /&gt;
&lt;br /&gt;
== rc-status usage ==&lt;br /&gt;
 Usage: rc-status [options] [runlevel1] [runlevel2] ...&lt;br /&gt;
 &lt;br /&gt;
 Options: [aclrsuChqv]&lt;br /&gt;
   -a, --all                         Show services from all run levels&lt;br /&gt;
   -c, --crashed                     Show crashed services&lt;br /&gt;
   -l, --list                        Show list of run levels&lt;br /&gt;
   -r, --runlevel                    Show the name of the current runlevel&lt;br /&gt;
   -s, --servicelist                 Show service list&lt;br /&gt;
   -u, --unused                      Show services not assigned to any runlevel&lt;br /&gt;
   -h, --help                        Display this help output&lt;br /&gt;
   -C, --nocolor                     Disable color output&lt;br /&gt;
   -v, --verbose                     Run verbosely&lt;br /&gt;
   -q, --quiet                       Run quietly&lt;br /&gt;
&lt;br /&gt;
== rc-service usage ==&lt;br /&gt;
 Usage: rc-service [options]&lt;br /&gt;
 &lt;br /&gt;
 Options: [e:ilr:ChqVv]&lt;br /&gt;
   -e, --exists &amp;lt;arg&amp;gt;                tests if the service exists or not&lt;br /&gt;
   -i, --ifexists                    if the service exists then run the command&lt;br /&gt;
   -l, --list                        list all available services&lt;br /&gt;
   -r, --resolve &amp;lt;arg&amp;gt;               resolve the service name to an init script&lt;br /&gt;
   -h, --help                        Display this help output&lt;br /&gt;
   -C, --nocolor                     Disable color output&lt;br /&gt;
   -V, --version                     Display software version&lt;br /&gt;
   -v, --verbose                     Run verbosely&lt;br /&gt;
   -q, --quiet                       Run quietly&lt;br /&gt;
&lt;br /&gt;
== rc usage ==&lt;br /&gt;
 Usage: rc [options]&lt;br /&gt;
 &lt;br /&gt;
 Options: [a:o:s:SChqVv]&lt;br /&gt;
   -a, --applet &amp;lt;arg&amp;gt;                runs the applet specified by the next argument&lt;br /&gt;
   -o, --override &amp;lt;arg&amp;gt;              override the next runlevel to change into&lt;br /&gt;
                                     when leaving single user or boot runlevels&lt;br /&gt;
   -s, --service &amp;lt;arg&amp;gt;               runs the service specified with the rest&lt;br /&gt;
                                     of the arguments&lt;br /&gt;
   -S, --sys                         output the RC system type, if any&lt;br /&gt;
   -h, --help                        Display this help output&lt;br /&gt;
   -C, --nocolor                     Disable color output&lt;br /&gt;
   -V, --version                     Display software version&lt;br /&gt;
   -v, --verbose                     Run verbosely&lt;br /&gt;
   -q, --quiet                       Run quietly&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Booting]]&lt;/div&gt;</summary>
		<author><name>Cs94njw</name></author>
	</entry>
</feed>