Changeset 0da88ea3 for networking/netprogs
- Timestamp:
- 07/20/2014 02:21:04 PM (10 years ago)
- Branches:
- 7.6-blfs, 7.6-systemd, kde5-14269, kde5-14686, systemd-13485
- Children:
- 3452097f
- Parents:
- 932240d
- Location:
- networking/netprogs
- Files:
-
- 2 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
networking/netprogs/netprogs.xml
r932240d r0da88ea3 27 27 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="nfs-utils-systemd.xml"/> 28 28 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="netfs.xml"/> 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ntp .xml"/>30 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="rpcbind .xml"/>31 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="rsync .xml"/>32 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="samba .xml"/>29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ntp-systemd.xml"/> 30 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="rpcbind-systemd.xml"/> 31 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="rsync-systemd.xml"/> 32 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="samba-systemd.xml"/> 33 33 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wget.xml"/> 34 34 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wireless-tools.xml"/> -
networking/netprogs/nfs-utils-systemd.xml
r932240d r0da88ea3 199 199 200 200 <para> 201 To start the NFS Server daemons at boot,201 To start the NFS server daemons at boot, 202 202 install the systemd units from the <xref linkend="bootscripts"/> 203 203 package by running the following command as the -
networking/netprogs/ntp-systemd.xml
r932240d r0da88ea3 181 181 and update the time each time <command>ntpd</command> is scheduled.</para> 182 182 183 <para>If you choose Option one, then install the 184 <filename>/etc/rc.d/init.d/ntp</filename> 185 init script included in the 186 <xref linkend="bootscripts"/> package.</para> 183 <para> 184 To start the <command>ntpd</command> daemon at boot, 185 install the systemd unit from the <xref linkend="bootscripts"/> 186 package by running the following command as the 187 <systemitem class="username">root</systemitem> user: 188 </para> 187 189 188 190 <indexterm zone="ntp ntp-init"> … … 197 199 198 200 <screen><literal>ntpd -q</literal></screen> 199 200 <para>Execute the following command if you would like to set the201 hardware clock to the current system time at shutdown and reboot:</para>202 203 <screen role="root"><userinput>ln -v -sf ../init.d/setclock /etc/rc.d/rc0.d/K46setclock &&204 ln -v -sf ../init.d/setclock /etc/rc.d/rc6.d/K46setclock</userinput></screen>205 206 <para>The other way around is already set up by LFS.</para>207 201 208 202 </sect3> -
networking/netprogs/rpcbind-systemd.xml
r932240d r0da88ea3 107 107 108 108 <sect3 id="rpcbind-init"> 109 <title> Boot Script</title>109 <title>Systemd Units</title> 110 110 111 <para>Install the <filename>/etc/rc.d/init.d/rpcbind</filename> init script 112 included in the <xref linkend="bootscripts"/> package.</para> 111 <para> 112 To start the <command>rpcbind</command> daemon at boot, 113 install the systemd unit from the <xref linkend="bootscripts"/> 114 package by running the following command as the 115 <systemitem class="username">root</systemitem> user: 116 </para> 113 117 114 118 <indexterm zone="rpcbind rpcbind-init"> -
networking/netprogs/rsync-systemd.xml
r932240d r0da88ea3 165 165 166 166 <sect3 id="rsync-init"> 167 <title> Boot Script</title>167 <title>Systemd Units</title> 168 168 169 169 <para>Note that you only want to start the 170 170 <application>rsync</application> server if you want to provide an 171 171 <application>rsync</application> archive on your local machine. 172 You don't need this script to run the172 You don't need this unit to run the 173 173 <application>rsync</application> client.</para> 174 174 175 <para>Install the <filename>/etc/rc.d/init.d/rsyncd</filename> init 176 script included in the 177 <xref linkend="bootscripts"/> package.</para> 175 <para> 176 To start the <command>rsync</command> daemon at boot, 177 install the systemd units from the <xref linkend="bootscripts"/> 178 package by running the following command as the 179 <systemitem class="username">root</systemitem> user: 180 </para> 178 181 179 182 <screen role="root"><userinput>make install-rsyncd</userinput></screen> 183 184 <note> 185 <para> 186 This package comes with two types of units: A service file and a socket file. 187 The service file will start rsync daemon once at boot and it will keep running until the 188 system shuts down. The socket file will make systemd listen on rsync port (Default 873, needs 189 to be edited for anything else) and will start rsync daemon when something tries to connect 190 to that port and stop the daemon when the connection is terminated. This is 191 called socket activation. 192 193 By default, the first method is used - rsync daemon is started at boot and stopped at shutdown. 194 If the socket method is desired, you need to run as the 195 <systemitem class="username">root</systemitem> user: 196 197 <screen role="root"><userinput>systemctl stop rsyncd && 198 systemctl disable rsyncd && 199 systemctl enable rsyncd.socket && 200 systemctl start rsyncd.socket</userinput></screen> 201 202 Note that socket method is only useful for remote backups. For local backups you'll need the 203 service method. 204 </para> 205 </note> 180 206 181 207 </sect3> -
networking/netprogs/samba-systemd.xml
r932240d r0da88ea3 114 114 --with-piddir=/run/samba \ 115 115 --with-pammodulesdir=/lib/security \ 116 --without-systemd \117 116 --enable-fhs \ 118 117 --enable-nss-wrapper && … … 174 173 <para><parameter>--enable-nss-wrapper</parameter>: Builds the nss-wrapper 175 174 library.</para> 176 177 <para><parameter>--without-systemd</parameter>: Disable178 <application>systemd</application> integration, which is not part of179 LFS/BLFS. If you use <application>systemd</application>, replace by180 <parameter>--with-systemd</parameter>.</para>181 175 182 176 <para><option>--enable-socket-wrapper</option> and … … 398 392 399 393 <sect4 id="samba-init"> 400 <title>Boot Script</title> 401 402 <para>For your convenience, boot scripts have been provided for 403 <application>Samba</application>. There are two included in the 404 <xref linkend="bootscripts"/> package. The first, 405 <filename>samba</filename>, will start the <command>smbd</command> 406 and <command>nmbd</command> daemons needed to provide SMB/CIFS 407 services. The second script, <filename>winbind</filename>, starts 408 the <command>winbindd</command> daemon, used for providing Windows 409 domain services to Linux clients.</para> 410 411 <indexterm zone="samba samba-init"> 412 <primary sortas="f-samba">samba</primary> 413 </indexterm> 414 415 <indexterm zone="samba samba-init"> 416 <primary sortas="f-winbind">winbind</primary> 417 </indexterm> 394 <title>Systemd Units</title> 418 395 419 396 <para>The default <application>Samba</application> installation uses the … … 431 408 -s /bin/false -u 99 nobody</userinput></screen> 432 409 433 <para>Install the <filename>samba</filename> script with the following 434 command issued as the <systemitem class="username">root</systemitem> 435 user:</para> 410 <para> 411 To start the <application>Samba</application> daemons at boot, 412 install the systemd units from the <xref linkend="bootscripts"/> 413 package by running the following command as the 414 <systemitem class="username">root</systemitem> user: 415 </para> 416 417 <indexterm zone="samba samba-init"> 418 <primary sortas="f-samba">samba</primary> 419 </indexterm> 436 420 437 421 <screen role="root"><userinput>make install-samba</userinput></screen> 438 422 439 <para>If you also need the <filename>winbindd</filename> 440 script to resolve names from Windows clients, run:</para> 423 <para> 424 To start the <command>winbindd</command> daemon at boot, 425 install the systemd unit from the <xref linkend="bootscripts"/> 426 package by running the following command as the 427 <systemitem class="username">root</systemitem> user: 428 </para> 429 430 <indexterm zone="samba samba-init"> 431 <primary sortas="f-winbindd">winbindd</primary> 432 </indexterm> 441 433 442 434 <screen role="root"><userinput>make install-winbindd</userinput></screen> 435 436 <note> 437 <para> 438 This package comes with two types of units: A service file and a socket file. 439 The service file will start smbd daemon once at boot and it will keep running until the 440 system shuts down. The socket file will make systemd listen on smbd port (Default 445, needs 441 to be edited for anything else) and will start smbd daemon when something tries to connect 442 to that port and stop the daemon when the connection is terminated. This is 443 called socket activation. 444 445 By default, the first method is used - smbd daemon is started at boot and stopped at shutdown. 446 If the socket method is desired, you need to run as the 447 <systemitem class="username">root</systemitem> user: 448 449 <screen role="root"><userinput>systemctl stop smbd && 450 systemctl disable smbd && 451 systemctl enable smbd.socket && 452 systemctl start smbd.socket</userinput></screen> 453 454 Note that only smbd daemon can be socket activated. 455 </para> 456 </note> 443 457 444 458 </sect4>
Note:
See TracChangeset
for help on using the changeset viewer.