summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-12-02 18:38:38 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-12-02 18:38:38 -0600
commite82cf974728528ba2704e891562bcf5574cfb55f (patch)
treef7417949bc9c7cdc4f922509b4474f8e69a9947e
parentada7da9afd2431d2b42f143dbb7b78af196d4c48 (diff)
downloaddocs-e82cf974728528ba2704e891562bcf5574cfb55f.tar.gz
docs-e82cf974728528ba2704e891562bcf5574cfb55f.tar.bz2
docs-e82cf974728528ba2704e891562bcf5574cfb55f.tar.xz
docs-e82cf974728528ba2704e891562bcf5574cfb55f.zip
Admin: ch04: Add ref IDs
-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>