Author: renodr
Date: Sat Oct  5 15:11:21 2019
New Revision: 22225

Log:
systemd: Adjust the fcron page to use --with-piddir=/run instead of a sed 
command. This is much cleaner and more elegant, and 'systemctl start fcron' now 
works without hanging systemctl.

Modified:
   trunk/BOOK/general.ent
   trunk/BOOK/general/sysutils/fcron.xml
   trunk/BOOK/introduction/welcome/changelog.xml

Modified: trunk/BOOK/general.ent
==============================================================================
--- trunk/BOOK/general.ent      Fri Oct  4 12:17:44 2019        (r22224)
+++ trunk/BOOK/general.ent      Sat Oct  5 15:11:21 2019        (r22225)
@@ -1,12 +1,12 @@
 <!-- $LastChangedBy$ $Date$ -->
 
-<!ENTITY day          "04">                   <!-- Always 2 digits -->
+<!ENTITY day          "05">                   <!-- Always 2 digits -->
 <!ENTITY month        "10">                   <!-- Always 2 digits -->
 <!ENTITY year         "2019">
 <!ENTITY copyrightdate "2001-&year;">
 <!ENTITY copyholder   "The BLFS Development Team">
 <!ENTITY version      "&year;-&month;-&day;">
-<!ENTITY releasedate  "October 4th, &year;">
+<!ENTITY releasedate  "October 5th, &year;">
 <!ENTITY pubdate      "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
 <!ENTITY blfs-version "svn">                  <!-- svn|[release #] -->
 <!ENTITY lfs-version  "development">          <!-- x.y|development -->

Modified: trunk/BOOK/general/sysutils/fcron.xml
==============================================================================
--- trunk/BOOK/general/sysutils/fcron.xml       Fri Oct  4 12:17:44 2019        
(r22224)
+++ trunk/BOOK/general/sysutils/fcron.xml       Sat Oct  5 15:11:21 2019        
(r22225)
@@ -134,6 +134,7 @@
             --sysconfdir=/etc      \
             --localstatedir=/var   \
             --without-sendmail     \
+            --with-piddir=/run     \
             --with-boot-install=no &amp;&amp;
 make</userinput></screen>
 
@@ -143,11 +144,6 @@
 
 <screen role="root"><userinput>make install</userinput></screen>
 
-    <para revision="systemd">Finally, fix a big in the systemd unit:</para>
-
-<screen revision="systemd" role="root"><userinput>sed -i 
's:/var/run/fcron.pid:/run/fcron.pid:' \
-   /lib/systemd/system/fcron.service</userinput></screen>
-
     <para>DESTDIR install must be done as <systemitem 
class="username">root</systemitem> user.</para>
 
   </sect2>
@@ -170,6 +166,10 @@
     <para><parameter>--with-boot-install=no</parameter>: This prevents
     installation of the bootscript included with the package.</para>
 
+    <para revision="systemd"><parameter>--with-piddir=/run</parameter>:
+    This fixes the systemd unit to use the proper directory for PID files so
+    that systemctl does not hang and the unit starts correctly.</para>
+
     <para 
revision="sysv"><parameter>--with-systemdsystemunitdir=no</parameter>:
     This prevents building the <application>systemd</application> units, which
     are not needed for a <application>SYS V</application> system.</para>

Modified: trunk/BOOK/introduction/welcome/changelog.xml
==============================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml       Fri Oct  4 12:17:44 
2019        (r22224)
+++ trunk/BOOK/introduction/welcome/changelog.xml       Sat Oct  5 15:11:21 
2019        (r22225)
@@ -41,6 +41,19 @@
       </itemizedlist>
     </listitem>
 -->
+    <listitem revision="systemd">
+    <!-- The next person to make a change that affects both init systems today
+         needs to adjust accordingly. -->
+      <para>October 5th, 2019</para>
+      <itemizedlist>
+        <listitem>
+          <para>[renodr] - Update the fcron page to use a cleaner and more
+          effective method of updating the PID directory in the fcron systemd
+          unit.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
     <listitem>
       <para>October 4th, 2019</para>
       <itemizedlist>
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to