Changeset 1258125


Ignore:
Timestamp:
06/11/2016 06:14:42 PM (8 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
3e42104
Parents:
bea508c
Message:

[Systemd merge] - Section V

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17481 af4574ff-66df-0310-9fd7-8a98e5e911e0

Location:
server
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • server/databases/mariadb.xml

    rbea508c r1258125  
    363363
    364364    <sect3 id="mariadb-init">
    365       <title>Boot Script</title>
     365      <title><phrase revision="sysv">Boot Script</phrase>
     366             <phrase revision="systemd">Systemd Unit</phrase></title>
    366367
    367368      <para>
    368         Install the <filename>/etc/rc.d/init.d/mysql</filename> init script
    369         included in the <xref linkend="bootscripts" revision="sysv"/>
     369        Install the
     370        <phrase revision="sysv"><filename>/etc/rc.d/init.d/mysql</filename> init
     371        script</phrase>
     372        <phrase revision="systemd"><filename>mysqld.service</filename>
     373        unit</phrase> included in the
     374        <xref linkend="bootscripts" revision="sysv"/>
    370375        <xref linkend="systemd-units" revision="systemd"/> package as
    371376        the <systemitem class="username">root</systemitem> user to start the
     
    377382      </indexterm>
    378383
    379 <screen role="root"><userinput>make install-mysql</userinput></screen>
     384<screen role="root" revision="sysv"><userinput>make install-mysql</userinput></screen>
     385
     386<screen role="root" revision="systemd"><userinput>make install-mysqld</userinput></screen>
    380387
    381388    </sect3>
  • server/databases/postgresql.xml

    rbea508c r1258125  
    247247
    248248    <sect3  id="postgresql-init">
    249       <title>Boot Script</title>
    250 
    251       <para>Install the <filename>/etc/rc.d/init.d/postgresql</filename>
    252       init script included in the
     249      <title><phrase revision="sysv">Boot Script</phrase>
     250             <phrase revision="systemd">Systemd Unit</phrase></title>
     251
     252      <para>Install the
     253      <phrase revision="sysv"><filename>/etc/rc.d/init.d/postgresql</filename>
     254      init script</phrase>
     255      <phrase revision="systemd"><filename>postgresql.service</filename>
     256      unit</phrase> included in the
    253257      <xref linkend="bootscripts" revision="sysv"/>
    254258      <xref linkend="systemd-units" revision="systemd"/> package.</para>
  • server/mail/dovecot.xml

    rbea508c r1258125  
    121121    </para>
    122122
    123 <screen><userinput>./configure --prefix=/usr \
    124             --sysconfdir=/etc \
    125             --localstatedir=/var \
     123<screen revision="sysv"><userinput>./configure --prefix=/usr                          \
     124            --sysconfdir=/etc                      \
     125            --localstatedir=/var                   \
    126126            --docdir=/usr/share/doc/dovecot-&dovecot-version; \
    127127            --disable-static &amp;&amp;
    128128make</userinput></screen>
    129129
     130<screen revision="systemd"><userinput>./configure --prefix=/usr                          \
     131            --sysconfdir=/etc                      \
     132            --localstatedir=/var                   \
     133            --docdir=/usr/share/doc/dovecot-&dovecot-version; \
     134            --disable-static                       \
     135            --with-systemdsystemunitdir=/lib/systemd/system &amp;&amp;
     136make</userinput></screen>
     137
    130138    <para>To test the results, issue <command>make -k check</command>. One test
    131139    fails for unknown reason</para>
     
    144152    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    145153      href="../../xincludes/static-libraries.xml"/>
     154
     155    <para>
     156      <parameter>--with-systemdsystemunitdir=/lib/systemd/system</parameter>:
     157      This switch is used to set the correct installation directory for
     158      systemd units.
     159    </para>
    146160
    147161    <para>
     
    244258
    245259    <sect3 id="dovecot-init">
    246       <title>Boot Script</title>
    247 
    248       <para>If you want the <application>Dovecot</application> server to
    249       start automatically when the system is booted, install the
    250       <filename>/etc/rc.d/init.d/dovecot</filename> init script included
    251       in the <xref linkend="bootscripts" revision="sysv"/>
    252       <xref linkend="systemd-units" revision="systemd"/> package.</para>
     260      <title><phrase revision="sysv">Boot Script</phrase>
     261             <phrase revision="systemd">Systemd Unit</phrase></title>
     262
     263      <para revision="sysv">If you want the <application>Dovecot</application>
     264      server to start automatically when the system is booted, install the
     265      <filename>/etc/rc.d/init.d/dovecot</filename> init script included in the
     266      <xref linkend="bootscripts"/> package.</para>
     267
     268      <para revision="systemd">To start the <command>dovecot</command>
     269      daemon at boot, enable the previously installed systemd unit with the
     270      following command:</para>
    253271
    254272      <indexterm zone="dovecot dovecot-init">
     
    256274      </indexterm>
    257275
    258 <screen role="root"><userinput>make install-dovecot</userinput></screen>
     276<screen role="root" revision="sysv"><userinput>make install-dovecot</userinput></screen>
     277
     278<screen role="root" revision="systemd"><userinput>systemctl enable dovecot</userinput></screen>
    259279
    260280    </sect3>
  • server/mail/exim.xml

    rbea508c r1258125  
    301301
    302302    <sect3  id="exim-init">
    303       <title>Boot Script</title>
    304 
    305       <para>To automate the running of <command>exim</command> at startup,
    306       install the <filename>/etc/rc.d/init.d/exim</filename> init script
     303      <title><phrase revision="sysv">Boot Script</phrase>
     304             <phrase revision="systemd">Systemd Unit</phrase></title>
     305
     306      <para>To automatically start <command>exim</command> at boot,
     307      install the
     308      <phrase revision="sysv"><filename>/etc/rc.d/init.d/exim</filename>
     309      init script</phrase>
     310      <phrase revision="systemd"><filename>exim.service</filename> unit</phrase>
    307311      included in the <xref linkend="bootscripts" revision="sysv"/>
    308       <xref linkend="systemd-units" revision="systemd"/>
    309       package.</para>
     312      <xref linkend="systemd-units" revision="systemd"/> package.</para>
    310313
    311314      <indexterm zone="exim exim-init">
     
    315318<screen role="root"><userinput>make install-exim</userinput></screen>
    316319
    317       <para>The bootscript also starts the <application>Exim</application>
    318       daemon and dispatches a queue runner process every 15 minutes. Modify
    319       the <option>-q<replaceable>&lt;time interval&gt;</replaceable></option>
     320      <para revision="sysv">The bootscript also starts the
     321      <application>Exim</application> daemon and dispatches a queue runner
     322      process every 15 minutes. Modify the
     323      <option>-q<replaceable>&lt;time interval&gt;</replaceable></option>
    320324      parameter in <filename>/etc/rc.d/init.d/exim</filename>, if necessary
    321325      for your installation.</para>
  • server/mail/postfix.xml

    rbea508c r1258125  
    402402
    403403    <sect3 id="postfix-init">
    404       <title>Boot Script</title>
     404      <title><phrase revision="sysv">Boot Script</phrase>
     405             <phrase revision="systemd">Systemd Unit</phrase></title>
    405406
    406407      <para>
    407408        To automate the running of Postfix at startup, install the
    408         <filename>/etc/rc.d/init.d/postfix</filename> init script included in
    409         the <xref linkend="bootscripts" revision="sysv"/>
     409        <phrase revision="sysv"><filename>/etc/rc.d/init.d/postfix</filename>
     410        init script</phrase>
     411        <phrase revision="systemd"><filename>postfix.service</filename>
     412        unit</phrase> included in the
     413        <xref linkend="bootscripts" revision="sysv"/>
    410414        <xref linkend="systemd-units" revision="systemd"/> package.
    411415      </para>
  • server/mail/sendmail.xml

    rbea508c r1258125  
    261261
    262262    <sect3  id="sendmail-init">
    263       <title>Boot Script</title>
     263      <title><phrase revision="sysv">Boot Script</phrase>
     264             <phrase revision="systemd">Systemd Unit</phrase></title>
    264265
    265266      <para>To automate the running of <application>sendmail</application>
    266       at startup, install the <filename>/etc/rc.d/init.d/sendmail</filename>
    267       init script included in the
     267      at startup, install the
     268      <phrase revision="sysv"><filename>/etc/rc.d/init.d/sendmail</filename>
     269      init script</phrase>
     270      <phrase revision="systemd"><filename>sendmail.service</filename>
     271      unit</phrase> included in the
    268272      <xref linkend="bootscripts" revision="sysv"/>
    269273      <xref linkend="systemd-units" revision="systemd"/> package.</para>
     
    278282        <para>The -qNm option to <command>sendmail</command>, where N is number
    279283        of minutes, controls how often <application>sendmail</application> will
    280         process the mail queue. A default of 5 minutes is used in the init
    281         script. Individual workstation users may want to set this as low as 1
    282         minute, large installations handling more mail may want to set it
    283         higher.</para>
     284        process the mail queue. A default of 5 minutes is used in the
     285        <phrase revision="sysv">init script.</phrase>
     286        <phrase revision="systemd">systemd unit.</phrase> Individual
     287        workstation users may want to set this as low as 1 minute, large
     288        installations handling more mail may want to set it higher.</para>
    284289      </note>
    285290
  • server/major/apache.xml

    rbea508c r1258125  
    268268
    269269    <sect3  id="httpd-init">
    270       <title>Boot Script</title>
     270      <title><phrase revision="sysv">Boot Script</phrase>
     271             <phrase revision="systemd">Systemd Unit</phrase></title>
    271272
    272273      <para>
    273274        If you want the <application>Apache</application> server to
    274275        start automatically when the system is booted, install the
    275         <filename>/etc/rc.d/init.d/httpd</filename> init script included
    276         in the <xref linkend="bootscripts" revision="sysv"/>
     276        <phrase revision="sysv"><filename>/etc/rc.d/init.d/httpd</filename>
     277        init script</phrase>
     278        <phrase revision="systemd"><filename>httpd.service</filename>
     279        unit</phrase> included in the
     280        <xref linkend="bootscripts" revision="sysv"/>
    277281        <xref linkend="systemd-units" revision="systemd"/> package.
    278282      </para>
  • server/major/bind.xml

    rbea508c r1258125  
    405405
    406406    <sect3  id="bind-init">
    407       <title>Boot Script</title>
     407      <title><phrase revision="sysv">Boot Script</phrase>
     408             <phrase revision="systemd">Systemd Unit</phrase></title>
    408409
    409410      <para>To start the DNS server at boot, install the
    410       <filename>/etc/rc.d/init.d/bind</filename> init script included
    411       in the <xref linkend="bootscripts" revision="sysv"/>
     411      <phrase revision="sysv"><filename>/etc/rc.d/init.d/bind</filename> init
     412      script</phrase>
     413      <phrase revision="systemd"><filename>named.service</filename>
     414      unit</phrase> included in the
     415      <xref linkend="bootscripts" revision="sysv"/>
    412416      <xref linkend="systemd-units" revision="systemd"/> package.</para>
    413417
     
    419423
    420424      <para>Now start <application>BIND</application> with
    421       the new boot script:</para>
    422 
    423 <screen role="root"><userinput>/etc/rc.d/init.d/bind start</userinput></screen>
     425      the following command:</para>
     426
     427<screen role="root" revision="sysv"><userinput>/etc/rc.d/init.d/bind start</userinput></screen>
     428<screen role="root" revision="systemd"><userinput>systemctl start named</userinput></screen>
    424429
    425430    </sect3>
  • server/major/proftpd.xml

    rbea508c r1258125  
    233233
    234234    <sect3  id="proftpd-init">
    235       <title>Boot Script</title>
    236 
    237       <para>Install the <filename>/etc/rc.d/init.d/proftpd</filename> init
    238       script included in the <xref linkend="bootscripts" revision="sysv"/>
     235      <title><phrase revision="sysv">Boot Script</phrase>
     236             <phrase revision="systemd">Systemd Unit</phrase></title>
     237
     238      <para>Install the
     239      <phrase revision="sysv"><filename>/etc/rc.d/init.d/proftpd</filename>
     240      init script</phrase>
     241      <phrase revision="systemd"><filename>proftpd.service</filename>
     242      unit</phrase> included in the
     243      <xref linkend="bootscripts" revision="sysv"/>
    239244      <xref linkend="systemd-units" revision="systemd"/>
    240245      package.</para>
  • server/major/vsftpd.xml

    rbea508c r1258125  
    216216             <phrase revision="systemd">Systemd Unit</phrase></title>
    217217
    218       <para revision="sysv">Install the
    219       <filename>/etc/rc.d/init.d/vsftpd</filename> init script included in the
    220       <xref linkend="bootscripts" revision="sysv"/> package.</para>
    221 
    222       <para revision="systemd">Install the <filename>vsftpd.service</filename>
    223       unit included in the
     218      <para>Install the
     219      <phrase revision="sysv"><filename>/etc/rc.d/init.d/vsftpd</filename> init
     220      script</phrase>
     221      <phrase revision="systemd"><filename>vsftpd.service</filename>
     222      unit</phrase> included in the
     223      <xref linkend="bootscripts" revision="sysv"/>
    224224      <xref linkend="systemd-units" revision="systemd"/> package.</para>
    225225
  • server/other/openldap.xml

    rbea508c r1258125  
    411411
    412412    <sect3 id="openldap-init">
    413       <title>Boot Script</title>
     413      <title><phrase revision="sysv">Boot Script</phrase>
     414             <phrase revision="systemd">Systemd Unit</phrase></title>
    414415
    415416      <para>
    416417        To automate the startup of the LDAP server at system bootup,
    417         install the <filename>/etc/rc.d/init.d/slapd</filename> init script
    418         included in the <xref linkend="bootscripts" revision="sysv"/>
    419         <xref linkend="systemd-units" revision="systemd"/> package
    420         using the following command:
     418        install the
     419        <phrase revision="sysv"><filename>/etc/rc.d/init.d/slapd</filename>
     420        init script</phrase>
     421        <phrase revision="systemd"><filename>slapd.service</filename>
     422        unit</phrase> included in the
     423        <xref linkend="bootscripts" revision="sysv"/>
     424        <xref linkend="systemd-units" revision="systemd"/>
     425        package using the following command:
    421426      </para>
    422427
     
    430435        <para>
    431436          You'll need to modify the
    432           <filename>/etc/sysconfig/slapd</filename> to include the
    433           parameters needed for your specific configuration. See the
    434           <command>slapd</command> man page for parameter information.
     437          <phrase revision="sysv"><filename>/etc/sysconfig/slapd</filename></phrase>
     438          <phrase revision="systemd"><filename>/etc/default/slapd</filename></phrase>
     439          to include the parameters needed for your specific configuration. See
     440          the <command>slapd</command> man page for parameter information.
    435441        </para>
    436442      </note>
     
    442448
    443449      <para>
    444         Start the LDAP server using the init script:
    445       </para>
    446 
    447 <screen role="root"><userinput>/etc/rc.d/init.d/slapd start</userinput></screen>
     450        Start the LDAP server using
     451        <phrase revision="sysv">the init script:</phrase>
     452        <phrase revision="systemd">systemctl:</phrase>
     453      </para>
     454
     455<screen role="root" revision="sysv"><userinput>/etc/rc.d/init.d/slapd start</userinput></screen>
     456
     457<screen role="root" revision="systemd"><userinput>systemctl start slapd</userinput></screen>
    448458
    449459      <para>
  • server/other/unbound.xml

    rbea508c r1258125  
    228228
    229229    <sect3 id="unbound-init">
    230       <title>Boot Script</title>
     230      <title><phrase revision="sysv">Boot Script</phrase>
     231             <phrase revision="systemd">Systemd Unit</phrase></title>
    231232
    232233      <para>If you want the <application>Unbound</application> server to
    233234      start automatically when the system is booted, install the
    234       <filename>/etc/rc.d/init.d/unbound</filename> init script included
     235      <phrase revision="sysv"><filename>/etc/rc.d/init.d/unbound</filename>
     236      init script</phrase>
     237      <phrase revision="systemd"><filename>unbound.service</filename>
     238      unit</phrase> included
    235239      in the <xref linkend="bootscripts" revision="sysv"/>
    236240      <xref linkend="systemd-units" revision="systemd"/> package.</para>
  • server/other/xinetd.xml

    rbea508c r1258125  
    397397
    398398    <sect3  id="xinetd-init">
    399       <title>Boot Script</title>
     399      <title><phrase revision="sysv">Boot Script</phrase>
     400             <phrase revision="systemd">Systemd Unit</phrase></title>
    400401
    401402      <para>As the <systemitem class="username">root</systemitem> user, install
    402       the <filename>/etc/rc.d/init.d/xinetd</filename> init script included in
     403      the <phrase revision="sysv"><filename>/etc/rc.d/init.d/xinetd</filename>
     404      init script</phrase>
     405      <phrase revision="systemd"><filename>xinetd.service</filename>
     406      unit</phrase> included in
    403407      the <xref linkend="bootscripts" revision="sysv"/>
    404408      <xref linkend="systemd-units" revision="systemd"/> package.</para>
     
    411415
    412416      <para>As the <systemitem class="username">root</systemitem> user,
    413       use the new boot script to start <command>xinetd</command>:</para>
    414 
    415 <screen role="root"><userinput>/etc/rc.d/init.d/xinetd start</userinput></screen>
    416 
    417       <para>Check the <filename>/var/log/daemon.log</filename> to ensure the
    418       appropriate services are started. If no services are enabled, the program
    419       will not start without the <option>-stayalive</option> option.</para>
     417      use the <phrase revision="sysv">new boot script</phrase>
     418      <phrase revision="systemd"><command>systemctl</command> command</phrase>
     419      to start <command>xinetd</command>:</para>
     420
     421<screen role="root" revision="sysv"><userinput>/etc/rc.d/init.d/xinetd start</userinput></screen>
     422
     423<screen role="root" revision="systemd"><userinput>systemctl start xinetd</userinput></screen>
     424
     425      <para>Check the
     426      <phrase revision="sysv"><filename>/var/log/daemon.log</filename></phrase>
     427      <phrase revision="systemd"><command>journalctl</command> output</phrase>
     428      to ensure the appropriate services are started. If no services are
     429      enabled, the program will not start without the
     430      <option>-stayalive</option> option.</para>
    420431
    421432<!--
Note: See TracChangeset for help on using the changeset viewer.