[deployment-guide] Updated the "Running the Net-SNMP Daemon" section.

Jaromir Hradilek jhradile at fedoraproject.org
Wed Oct 12 15:55:20 UTC 2011


commit e9f42255f433492d4164aed9b0ba11520885048f
Author: Jaromir Hradilek <jhradile at redhat.com>
Date:   Wed Oct 12 16:29:42 2011 +0200

    Updated the "Running the Net-SNMP Daemon" section.

 en-US/System_Monitoring_Tools.xml |   28 ++++++++++++++++++----------
 1 files changed, 18 insertions(+), 10 deletions(-)
---
diff --git a/en-US/System_Monitoring_Tools.xml b/en-US/System_Monitoring_Tools.xml
index c4b3764..957693e 100644
--- a/en-US/System_Monitoring_Tools.xml
+++ b/en-US/System_Monitoring_Tools.xml
@@ -492,20 +492,23 @@ tmpfs                 2.0G  592K  2.0G   1% /dev/shm
     <section id="sect-System_Monitoring_Tools-Net-SNMP-Running">
       <title>Running the Net-SNMP Daemon</title>
       <para>
-        The <package>net-snmp</package> package contains <systemitem class="service">snmpd</systemitem>, the SNMP Agent Daemon. This section provides information on how to start, stop, and restart the <systemitem class="service">snmpd</systemitem> service, and shows how to enable it in a particular runlevel. For more information on the concept of runlevels and how to manage system services in Red Hat Enterprise Linux in general, refer to <xref linkend="ch-Services_and_Daemons" />.
+        The <package>net-snmp</package> package contains <systemitem class="service">snmpd</systemitem>, the SNMP Agent Daemon. This section provides information on how to start, stop, and restart the <systemitem class="service">snmpd</systemitem> service, and shows how to enable or disable it in the <systemitem>multi-user</systemitem> target unit. For more information on the concept of target units and how to manage system services in &MAJOROS; in general, refer to <xref linkend="ch-Services_and_Daemons" />.
       </para>
       <section id="sect-System_Monitoring_Tools-Net-SNMP-Running-Starting">
         <title>Starting the Service</title>
         <para>
           To run the <systemitem class="service">snmpd</systemitem> service in the current session, type the following at a shell prompt as <systemitem class="username">root</systemitem>:
         </para>
-        <synopsis><command>service</command> <option>snmpd</option> <option>start</option></synopsis>
+        <synopsis><command>systemctl</command> <option>start</option> <option>snmpd.service</option></synopsis>
         <para>
           To configure the service to be automatically started at boot time, use the following command:
         </para>
-        <synopsis><command>chkconfig</command> <option>snmpd</option> <option>on</option></synopsis>
+        <synopsis><command>systemctl</command> <option>enable</option> <option>snmpd.service</option></synopsis>
         <para>
-          This will enable the service in runlevel 2, 3, 4, and 5. Alternatively, you can use the <application>Service Configuration</application> utility as described in <xref linkend="s3-services-serviceconf-enabling" />.
+          This will enable the service in the <systemitem>multi-user</systemitem> target unit.
+          <!-- TODO F16: Link to the appropriate section once it is written.
+          Alternatively, you can use the <application>Service Configuration</application> utility as described in <xref linkend="s3-services-configuration-enabling" />.
+          -->
         </para>
       </section>
       <section id="sect-System_Monitoring_Tools-Net-SNMP-Running-Stopping">
@@ -513,13 +516,16 @@ tmpfs                 2.0G  592K  2.0G   1% /dev/shm
         <para>
           To stop the running <systemitem class="service">snmpd</systemitem> service, type the following at a shell prompt as <systemitem class="username">root</systemitem>:
         </para>
-        <synopsis><command>service</command> <option>snmpd</option> <option>stop</option></synopsis>
+        <synopsis><command>systemctl</command> <option>stop</option> <option>snmpd.service</option></synopsis>
         <para>
           To disable starting the service at boot time, use the following command:
         </para>
-        <synopsis><command>chkconfig</command> <option>snmpd</option> <option>off</option></synopsis>
+        <synopsis><command>systemctl</command> <option>disable</option> <option>snmpd.service</option></synopsis>
         <para>
-          This will disable the service in all runlevels. Alternatively, you can use the <application>Service Configuration</application> utility as described in <xref linkend="s3-services-serviceconf-disabling" />.
+          This will disable the service in the <systemitem>multi-user</systemitem> target unit.
+          <!-- TODO F16: Link to the appropriate section once it is written.
+          Alternatively, you can use the <application>Service Configuration</application> utility as described in <xref linkend="s3-services-configuration-disabling" />.
+          -->
         </para>
       </section>
       <section id="sect-System_Monitoring_Tools-Net-SNMP-Running-Restarting">
@@ -527,17 +533,19 @@ tmpfs                 2.0G  592K  2.0G   1% /dev/shm
         <para>
           To restart the running <systemitem class="service">snmpd</systemitem> service, type the following at a shell prompt:
         </para>
-        <synopsis><command>service</command> <option>snmpd</option> <option>restart</option></synopsis>
+        <synopsis><command>systemctl</command> <option>restart</option> <option>snmpd.service</option></synopsis>
         <para>
           This will stop the service and start it again in quick succession. To only reload the configuration without stopping the service, run the following command instead:
         </para>
-        <synopsis><command>service</command> <option>snmpd</option> <option>reload</option></synopsis>
+        <synopsis><command>systemctl</command> <option>reload</option> <option>snmpd.service</option></synopsis>
         <para>
           This will cause the running <systemitem class="service">snmpd</systemitem> service to reload the configuration.
         </para>
+        <!-- TODO F16: Link to the appropriate section once it is written.
         <para>
           Alternatively, you can use the <application>Service Configuration</application> utility as described in <xref linkend="s3-services-serviceconf-restarting" />.
         </para>
+        -->
       </section>
     </section>
     <section id="sect-System_Monitoring_Tools-Net-SNMP-Configuring">
@@ -556,7 +564,7 @@ tmpfs                 2.0G  592K  2.0G   1% /dev/shm
         <para>
           For any changes to the configuration file to take effect, force the <systemitem class="service">snmpd</systemitem> service to re-read the configuration by running the following command as <systemitem class="username">root</systemitem>:
         </para>
-        <synopsis><command>service</command> <option>snmpd</option> <option>reload</option></synopsis>
+        <synopsis><command>systemctl</command> <option>reload</option> <option>snmpd.service</option></synopsis>
       </note>
       <section id="sect-System_Monitoring_Tools-Net-SNMP-Configuring-System_Information">
         <title>Setting System Information</title>


More information about the docs-commits mailing list