[deployment-guide/comm-rel: 63/74] Minor formatting enhancements.

dsilas dsilas at fedoraproject.org
Tue Jul 6 21:14:42 UTC 2010


commit 20cb89a37941a6c51a61282186fb1c6d22a3a922
Author: Jaromir Hradilek <jhradile at redhat.com>
Date:   Tue Jun 29 11:29:25 2010 +0200

    Minor formatting enhancements.

 en-US/Controlling_Access_to_Services.xml |   31 ++++++++++++++++++++++-------
 1 files changed, 23 insertions(+), 8 deletions(-)
---
diff --git a/en-US/Controlling_Access_to_Services.xml b/en-US/Controlling_Access_to_Services.xml
index 927d943..363a599 100644
--- a/en-US/Controlling_Access_to_Services.xml
+++ b/en-US/Controlling_Access_to_Services.xml
@@ -442,7 +442,9 @@ Password: </screen>
         <para>
           To display a list of system services (i.e., both the services from the <filename class="directory">/etc/rc.d/init.d/</filename> directory, and the services controlled by <application>xinetd</application>), either type <command>chkconfig --list</command>, or use <command>chkconfig</command> with no additional arguments. You should be presented with an output similar to this:
         </para>
-        <screen>~]# <command>chkconfig --list</command>
+        <example id="ex-services-chkconfig-listing-all">
+          <title>Listing the services</title>
+          <screen>~]# <command>chkconfig --list</command>
 NetworkManager  0:off   1:off   2:on    3:on    4:on    5:on    6:off
 abrtd           0:off   1:off   2:off   3:on    4:off   5:on    6:off
 acpid           0:off   1:off   2:on    3:on    4:on    5:on    6:off
@@ -462,19 +464,26 @@ xinetd based services:
         discard-dgram:  off
 <emphasis>... several lines omitted ...</emphasis>
         time-stream:    off</screen>
+        </example>
         <para>
           As you can see, each line consists of the name of the service followed by its status (<emphasis>on</emphasis> or <emphasis>off</emphasis>) for each of the seven numbered runlevels. For example, in the listing above, <application>NetworkManager</application> is enabled for runlevel 2, 3, 4, and 5, while <application>abrtd</application> runs in runlevel 3 and 5. The <application>xinetd</application> based services are listed at the end, being either <emphasis>on</emphasis>, or <emphasis>off</emphasis>.
         </para>
         <para>
           To display the current settings for selected service only, use <command>chkconfig --list</command> followed by the name of the service:
         </para>
-        <screen>~]# <command>chkconfig --list sshd</command>
+        <example id="ex-services-chkconfig-listing-single">
+          <title>Listing a single service</title>
+          <screen>~]# <command>chkconfig --list sshd</command>
 sshd            0:off   1:off   2:on    3:on    4:on    5:on    6:off</screen>
-      <para>
-        You can also use <command>chkconfig --list <replaceable>&lt;service&gt;</replaceable></command> to display the status of a service that is managed by <application>xinetd</application>. In that case, the output will simply contain the information whether the service is enabled or disabled:
-      </para>
-      <screen>~]# <command>chkconfig --list rsync</command>
+        </example> 
+        <para>
+          You can also use <command>chkconfig --list <replaceable>&lt;service&gt;</replaceable></command> to display the status of a service that is managed by <application>xinetd</application>. In that case, the output will simply contain the information whether the service is enabled or disabled:
+        </para>
+        <example id="ex-services-chkconfig-listing-xinetd">
+          <title>Listing a service that is managed by <application>xinetd</application></title>
+          <screen>~]# <command>chkconfig --list rsync</command>
 rsync           off</screen>
+        </example>
       </section>
       <section id="s3-services-chkconfig-enabling">
         <title>Enabling the Service</title>
@@ -577,12 +586,17 @@ Starting httpd:                                            [  OK  ]</screen>
         <para>
           To check the current status of the service, type <command>service <replaceable>&lt;service_name&gt;</replaceable> status</command>. For example:
         </para>
-        <screen>~]# <command>service httpd status</command>
+        <example id="ex-services-running-checking-single">
+          <title>Checking the status of <application>httpd</application></title>
+          <screen>~]# <command>service httpd status</command>
 httpd (pid  7474) is running...</screen>
+        </example>
         <para>
           You can also display the status of all available services at once using the <option>--status-all</option> option:
         </para>
-        <screen>~]# <command>service --status-all</command>
+        <example id="ex-services-running-checking-all">
+          <title>Checking the status of all services</title>
+          <screen>~]# <command>service --status-all</command>
 abrt (pid  1492) is running...
 acpid (pid  1305) is running...
 atd (pid  1540) is running...
@@ -592,6 +606,7 @@ Avahi daemon is running
 cpuspeed is stopped
 <emphasis>... several lines omitted ...</emphasis>
 wpa_supplicant (pid  1227) is running...</screen>
+        </example>
       </section>
     </section>
   </section>


More information about the docs-commits mailing list