summaryrefslogtreecommitdiff
path: root/src/admin/4_services.xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/admin/4_services.xml')
-rw-r--r--src/admin/4_services.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/admin/4_services.xml b/src/admin/4_services.xml
index f4473c8..4f2ead8 100644
--- a/src/admin/4_services.xml
+++ b/src/admin/4_services.xml
@@ -10,13 +10,13 @@
<title>Installing a service</title>
<para>Refer to <xref linkend="packages"/> for detailed information about installing packages. When you install the <package>openssh</package> package using <command>apk add openssh</command>, you may notice that APK automatically installs <package>openssh-openrc</package> for you. Services packaged by Adélie Linux always include -openrc subpackages which allow you to quickly and easily bring up new services on your systems.</para>
</section>
- <section>
+ <section id="enable_disable_rc">
<title>Enabling and disabling services</title>
<warning><title>Security Notice</title><para>Remember to always review a service's documentation and best practices for configuration before enabling and starting the service.</para></warning>
<para>To enable a service, you may use the command <command>rc-update add <userinput>SERVICE</userinput> default</command>, where <userinput>SERVICE</userinput> is the name of the service &mdash; in this example, <literal>sshd</literal>. This adds the service to OpenRC's <firstterm>default runlevel</firstterm>, which means the service will automatically start when the system is booted. You may configure other runlevels based on your needs; however, this process is beyond the scope of this handbook. Refer to <ulink url="https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/Initscripts">the official OpenRC documentation</ulink> for more information.</para>
<para>To disable a service, and prevent it from automatically starting on system boot, you may use the command <command>rc-update del <userinput>SERVICE</userinput> default</command>, where <userinput>SERVICE</userinput> is the name of the service.</para>
</section>
- <section>
+ <section id="start_stop_rc">
<title>Starting, stopping, and restarting services</title>
<para>To start a service, you may use the command <command>service <userinput>SERVICE</userinput> start</command>, where <userinput>SERVICE</userinput> is the name of the service you wish to start. To stop a service, you may use the command <command>service <userinput>SERVICE</userinput> stop</command>, and to restart, you may use the command <command>service <userinput>SERVICE</userinput> restart</command>.</para>
</section>