Author: dj Date: Sun Jun 5 21:26:43 2016 New Revision: 17452 Log: [Systemd merge] - general/sysutils part 1
Modified: trunk/BOOK/general/sysutils/acpid.xml trunk/BOOK/general/sysutils/at.xml trunk/BOOK/general/sysutils/autofs.xml trunk/BOOK/general/sysutils/bluez.xml Modified: trunk/BOOK/general/sysutils/acpid.xml ============================================================================== --- trunk/BOOK/general/sysutils/acpid.xml Sun Jun 5 20:35:53 2016 (r17451) +++ trunk/BOOK/general/sysutils/acpid.xml Sun Jun 5 21:26:43 2016 (r17452) @@ -144,13 +144,20 @@ </para> <sect3 id="acpid-init"> - <title>Boot Script</title> + <title><phrase revision="sysv">Boot Script</phrase> + <phrase revision="systemd">Systemd Socket</phrase></title> - <para> + <para revision="sysv"> To automatically start <command>acpid</command> when the system is rebooted, install the <filename>/etc/rc.d/init.d/acpid</filename> - boot script from the <xref linkend="bootscripts" revision="sysv"/> - <xref linkend="systemd-units" revision="systemd"/> package. + boot script from the <xref linkend="bootscripts"/> package. + </para> + + <para revision="systemd"> + To start the <command>acpid</command> daemon at boot, + install the systemd unit from the <xref linkend="systemd-units"/> + package by running the following command as the + <systemitem class="username">root</systemitem> user: </para> <indexterm zone="acpid acpid-init"> @@ -159,6 +166,14 @@ <screen role="root"><userinput>make install-acpid</userinput></screen> + <note revision="systemd"> + <para> + This package uses socket based activation and will be started when + something needs it. No standalone unit file is provided for this + package. + </para> + </note> + </sect3> </sect2> Modified: trunk/BOOK/general/sysutils/at.xml ============================================================================== --- trunk/BOOK/general/sysutils/at.xml Sun Jun 5 20:35:53 2016 (r17451) +++ trunk/BOOK/general/sysutils/at.xml Sun Jun 5 21:26:43 2016 (r17452) @@ -109,12 +109,19 @@ <para>Install <application>at</application> with the following commands:</para> - <screen><userinput>./configure --with-daemon_username=atd \ + <screen revision="sysv"><userinput>./configure --with-daemon_username=atd \ --with-daemon_groupname=atd \ SENDMAIL=/usr/sbin/sendmail && make</userinput></screen> + <screen revision="systemd"><userinput>./configure --with-daemon_username=atd \ + --with-daemon_groupname=atd \ + SENDMAIL=/usr/sbin/sendmail \ + --with-systemdsystemunitdir=/lib/systemd/system && + +make -j1</userinput></screen> + <para>This package does not come with a test suite.</para> <para>Now, as the <systemitem class="username">root</systemitem> user:</para> @@ -146,17 +153,26 @@ </sect3> <sect3 id="at-init"> - <title>Boot Script</title> + <title><phrase revision="sysv">Boot Script</phrase> + <phrase revision="systemd">Systemd Unit</phrase></title> - <para>Install the <filename>/etc/init.d/atd</filename> init script from - the <xref linkend="bootscripts" revision="sysv"/> - <xref linkend="systemd-units" revision="systemd"/> package.</para> + <para revision="sysv">Install the <filename>/etc/init.d/atd</filename> + init script from the <xref linkend="bootscripts"/> package.</para> + + <para revision="systemd"> + To start the <command>atd</command> daemon at boot, + enable the previously installed systemd unit by + running the following command as the + <systemitem class="username">root</systemitem> user: + </para> <indexterm zone="at at-init"> <primary sortas="f-at">at</primary> </indexterm> -<screen role="root"><userinput>make install-atd</userinput></screen> +<screen role="root" revision="sysv"><userinput>make install-atd</userinput></screen> + +<screen role="root" revision="systemd"><userinput>systemctl enable atd</userinput></screen> </sect3> Modified: trunk/BOOK/general/sysutils/autofs.xml ============================================================================== --- trunk/BOOK/general/sysutils/autofs.xml Sun Jun 5 20:35:53 2016 (r17451) +++ trunk/BOOK/general/sysutils/autofs.xml Sun Jun 5 21:26:43 2016 (r17452) @@ -111,7 +111,13 @@ <para>Install <application>Autofs</application> by running the following commands:</para> -<screen><userinput>./configure --prefix=/ \ +<screen revision="sysv"><userinput>./configure --prefix=/ \ + --without-openldap \ + --mandir=/usr/share/man && +make</userinput></screen> + +<screen revision="systemd"><userinput>./configure --prefix=/ \ + --with-systemd \ --without-openldap \ --mandir=/usr/share/man && make</userinput></screen> @@ -127,6 +133,11 @@ <sect2 role="commands"> <title>Command Explanations</title> + <para revision="systemd"> + <parameter>--with-systemd</parameter>: This switch enables installation + of the bundled systemd units. + </para> + <para> <option>--with-libtirpc</option>: This switch enables libtirpc support if available. @@ -243,28 +254,45 @@ </sect3> <sect3 id="autofs-init"> - <title>Boot Script</title> + <title><phrase revision="sysv">Boot Script</phrase> + <phrase revision="systemd">Systemd Unit</phrase></title> - <para> <application>autofs</application> installs its own boot script, - but it has no capability for logging or visual conformance with other - BLFS scripts.</para> - - <para>Install the <filename>/etc/init.d/autofs</filename> mount script - included with the <xref linkend="bootscripts" revision="sysv"/> - <xref linkend="systemd-units" revision="systemd"/> package.</para> + <para revision="sysv"><application>autofs</application> installs its own + boot script, but it has no capability for logging or visual conformance + with other BLFS scripts.</para> + + <para revision="sysv">Install the <filename>/etc/init.d/autofs</filename> + mount script included with the <xref linkend="bootscripts"/> + package.</para> + + <para revision="systemd"> + To start <application>Autofs</application> at boot, enable the + previously installed systemd unit by running the following command as + the <systemitem class="username">root</systemitem> user: + </para> <indexterm zone="autofs autofs-init"> <primary sortas="f-autofs-init">autofs</primary> </indexterm> -<screen role="root"><userinput>make install-autofs</userinput></screen> +<screen role="root" revision="sysv"><userinput>make install-autofs</userinput></screen> + +<screen role="root" revision="systemd"><userinput>systemctl enable autofs</userinput></screen> - <para>The time-out variable is set in + <para revision="sysv">The time-out variable is set in <filename>/etc/sysconfig/autofs.conf</filename>. The installed file sets a default of 60 seconds of inactivity before unmounting the device. A much shorter time may be necessary to protect buffer writing to a floppy if users tend to remove the media prior to the timeout setting.</para> + <note revision="systemd"> + <para> + You can also specify <envar>OPTIONS</envar> variable in the + <filename>/etc/sysconfig/autofs</filename> file with any additional + parameters that you might want to pass to the automount daemon. + </para> + </note> + </sect3> </sect2> Modified: trunk/BOOK/general/sysutils/bluez.xml ============================================================================== --- trunk/BOOK/general/sysutils/bluez.xml Sun Jun 5 20:35:53 2016 (r17451) +++ trunk/BOOK/general/sysutils/bluez.xml Sun Jun 5 21:26:43 2016 (r17452) @@ -137,13 +137,19 @@ commands: </para> -<screen><userinput>./configure --prefix=/usr \ +<screen revision="sysv"><userinput>./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-library \ --disable-systemd && make</userinput></screen> +<screen revision="systemd"><userinput>./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-library && +make</userinput></screen> + <para> To test the results, issue: <userinput>make check</userinput>. </para> @@ -183,7 +189,7 @@ some applications. </para> - <para> + <para revision="sysv"> <parameter>--disable-systemd</parameter>: This switch is needed because <application>systemd</application> is not part of LFS/BLFS. If you are using systemd, remove this switch. @@ -236,21 +242,37 @@ </sect3> <sect3 id="bluez-init"> - <title>Boot Script</title> + <title><phrase revision="sysv">Boot Script</phrase> + <phrase revision="systemd">Systemd Socket</phrase></title> - <para> + <para revision="sysv"> To automatically start the <command>bluetoothd</command> daemon when the system is rebooted, install the <filename>/etc/rc.d/init.d/bluetooth</filename> bootscript from the - <xref linkend="bootscripts" revision="sysv"/> - <xref linkend="systemd-units" revision="systemd"/> package. + <xref linkend="bootscripts"/> package. + </para> + + <para revision="systemd"> + To start the <command>bluetoothd</command> daemon at boot, + enable the previously installed systemd unit by + running the following command as the + <systemitem class="username">root</systemitem> user: </para> <indexterm zone="bluez bluez-init"> <primary sortas="f-bluetooth">bluetooth</primary> </indexterm> -<screen role="root"><userinput>make install-bluetooth</userinput></screen> +<screen role="root" revision="sysv"><userinput>make install-bluetooth</userinput></screen> + +<screen role="root" revision="systemd"><userinput>systemctl enable bluetooth</userinput></screen> + + <note revision="systemd"> + <para> + <application>Systemd</application> will start the Bluetooth daemon + only when a bluetooth device is detected on the system. + </para> + </note> </sect3> -- http://lists.linuxfromscratch.org/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page