source: networking/netprogs/rpcbind.xml@ 59ed6d46

systemd-13485
Last change on this file since 59ed6d46 was 5fb26b0, checked in by DJ Lucas <dj@…>, 9 years ago

More -systemd.xml file renames.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16873 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY rpcbind-download-http "&sourceforge-repo;/rpcbind/rpcbind-&rpcbind-version;.tar.bz2">
8 <!ENTITY rpcbind-download-ftp " ">
9 <!ENTITY rpcbind-md5sum "c8875246b2688a1adfbd6ad43480278d">
10 <!ENTITY rpcbind-size "120 KB">
11 <!ENTITY rpcbind-buildsize "2.0 MB">
12 <!ENTITY rpcbind-time "less than 0.1 SBU">
13]>
14
15<sect1 id="rpcbind" xreflabel="rpcbind-&rpcbind-version;">
16 <?dbhtml filename="rpcbind.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>rpcbind-&rpcbind-version;</title>
24
25 <indexterm zone="rpcbind">
26 <primary sortas="a-rpcbind">rpcbind</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to rpcbind</title>
31
32 <para>
33 The <application>rpcbind</application> program is a replacement for
34 <application>portmap</application>. It is required for import or
35 export of Network File System (NFS) shared directories.
36 </para>
37
38 &lfs77_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&rpcbind-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&rpcbind-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &rpcbind-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &rpcbind-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &rpcbind-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &rpcbind-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">rpcbind Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <xref linkend="libtirpc"/>
79 </para>
80
81 <para condition="html" role="usernotes">User Notes:
82 <ulink url="&blfs-wiki;/rpcbind"/>
83 </para>
84 </sect2>
85
86 <sect2 role="installation">
87 <title>Installation of rpcbind</title>
88
89 <para>
90 There should be a dedicated user and group to take control
91 of the <command>rpcbind</command> daemon after it is started.
92 Issue the following commands as the
93 <systemitem class="username">root</systemitem> user:
94 </para>
95
96<screen role="root"><userinput>groupadd -g 28 rpc &amp;&amp;
97useradd -c "RPC Bind Daemon Owner" -d /dev/null -g rpc \
98 -s /bin/false -u 28 rpc</userinput></screen>
99
100 <!-- Packages should adapt to standards, not the other way around -->
101 <para>
102 In order to get <application>rpcbind</application> to work
103 properly, first fix the package to use correct service name:
104 </para>
105
106<screen><userinput>sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c &amp;&amp;
107sed -i "/error = getaddrinfo/s:rpcbind:sunrpc:" src/rpcinfo.c</userinput></screen>
108
109 <para>
110 Install <application>rpcbind</application> by running the following
111 commands:
112 </para>
113
114<screen><userinput>./configure --prefix=/usr \
115 --bindir=/sbin \
116 --with-rpcuser=rpc \
117 --enable-warmstarts \
118 --with-statedir=/var/lib/rpcbind &amp;&amp;
119make</userinput></screen>
120
121 <para>
122 This package does not come with a test suite.
123 </para>
124
125 <para>
126 Now, as the <systemitem class="username">root</systemitem> user:
127 </para>
128
129<screen role="root"><userinput>make install &amp;&amp;
130install -v -dm755 -o rpc -g rpc /var/lib/rpcbind</userinput></screen>
131
132 </sect2>
133
134 <sect2 role="commands">
135 <title>Command Explanations</title>
136
137 <para>
138 <parameter>--with-rpcuser=rpc</parameter>: This switch
139 is used so the <command>rpcbind</command> daemon will
140 run as an unprivileged user instead of
141 <systemitem class="username">root</systemitem> user.
142 </para>
143
144 <para>
145 <parameter>--enable-warmstarts</parameter>: This switch
146 is used to enable <command>rpcbind</command> to write
147 the current list of registered services to a file when
148 it shuts down so it can resume operation with the
149 registrations found in the file when it is started again.
150 </para>
151
152 <para>
153 <parameter>--with-statedir=/var/lib/rpcbind</parameter>:
154 This switch is used to instruct <command>rpcbind</command>
155 to write current list of registered services to a
156 permanent location of <filename
157 class="directory">/var/lib/rpcbind</filename> instead of
158 <filename class="directory">/tmp</filename>.
159 </para>
160
161 </sect2>
162
163 <sect2 role="configuration">
164 <title>Configuring rpcbind</title>
165
166 <sect3 id="rpcbind-init">
167 <title>Systemd Units</title>
168
169 <para>
170 To start the <command>rpcbind</command> daemon at boot,
171 install the systemd unit from the <xref linkend="bootscripts"/>
172 package by running the following command as the
173 <systemitem class="username">root</systemitem> user:
174 </para>
175
176 <indexterm zone="rpcbind rpcbind-init">
177 <primary sortas="f-rpcbind">rpcbind</primary>
178 </indexterm>
179
180<screen role="root"><userinput>make install-rpcbind</userinput></screen>
181
182 <note>
183 <para>
184 This package uses socket based activation and will be started when
185 something needs it. No standalone unit file is provided for this
186 package.
187 </para>
188 </note>
189
190 </sect3>
191
192 </sect2>
193
194 <sect2 role="content">
195 <title>Contents</title>
196
197 <segmentedlist>
198 <segtitle>Installed Programs</segtitle>
199 <segtitle>Installed Libraries</segtitle>
200 <segtitle>Installed Directories</segtitle>
201
202 <seglistitem>
203 <seg>
204 rpcbind and rpcinfo
205 </seg>
206 <seg>
207 None
208 </seg>
209 <seg>
210 None
211 </seg>
212 </seglistitem>
213 </segmentedlist>
214
215 <variablelist>
216 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
217 <?dbfo list-presentation="list"?>
218 <?dbhtml list-presentation="table"?>
219
220 <varlistentry id="rpcbind-prog">
221 <term><command>rpcbind</command></term>
222 <listitem>
223 <para>
224 is a server that converts RPC program numbers into universal
225 addresses. It must be running on the host to be able to make
226 RPC calls on a server on that machine.
227 </para>
228 <indexterm zone="rpcbind rpcbind-prog">
229 <primary sortas="b-rpcbind">rpcbind</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 <varlistentry id="rpcinfo">
235 <term><command>rpcinfo</command></term>
236 <listitem>
237 <para>
238 makes an RPC call to an RPC server and reports data according
239 to the requested options.
240 </para>
241 <indexterm zone="rpcbind rpcinfo">
242 <primary sortas="b-rpcinfo">rpcinfo</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 </variablelist>
248
249 </sect2>
250
251</sect1>
Note: See TracBrowser for help on using the repository browser.