source: general/genlib/fam.xml@ 0fa91c66

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0fa91c66 was 1f672c1, checked in by Bruce Dubbs <bdubbs@…>, 19 years ago

Update to xinetd configuration files from patch by John Gnew

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

  • Property mode set to 100644
File size: 5.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7<!ENTITY fam-download-http "http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/fam-&fam-version;.tar.gz">
8<!ENTITY fam-download-ftp "ftp://oss.sgi.com/projects/fam/download/stable/fam-&fam-version;.tar.gz">
9<!ENTITY fam-md5sum "1bf3ae6c0c58d3201afc97c6a4834e39">
10<!ENTITY fam-size "320 KB">
11<!ENTITY fam-buildsize "6.9 MB">
12<!ENTITY fam-time "0.37 SBU">
13]>
14
15<sect1 id="fam" xreflabel="FAM-&fam-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="fam.html"?>
21<title>FAM-&fam-version;</title>
22
23<sect2>
24<title>Introduction to <application><acronym>FAM</acronym></application></title>
25
26<para>The <application><acronym>FAM</acronym></application> package contains a
27File Alteration Monitor which is useful for notifying applications of
28changes to the file system.</para>
29
30<sect3><title>Package information</title>
31<itemizedlist spacing='compact'>
32<listitem><para>Download (HTTP): <ulink
33url="&fam-download-http;"/></para></listitem>
34<listitem><para>Download (FTP): <ulink
35url="&fam-download-ftp;"/></para></listitem>
36<listitem><para>Download MD5 sum: &fam-md5sum;</para></listitem>
37<listitem><para>Download size: &fam-size;</para></listitem>
38<listitem><para>Estimated disk space required:
39&fam-buildsize;</para></listitem>
40<listitem><para>Estimated build time:
41&fam-time;</para></listitem></itemizedlist>
42</sect3>
43
44<sect3><title>Additional downloads</title>
45<itemizedlist spacing='compact'>
46<listitem><para>Dnotify patch (Recommended): <ulink
47url="&patch-root;/fam-&fam-version;-dnotify-1.patch"/></para></listitem>
48</itemizedlist>
49</sect3>
50
51<sect3><title><application><acronym>FAM</acronym></application> dependencies
52</title>
53<sect4><title>Required</title>
54<para><xref linkend="portmap"/></para></sect4>
55</sect3>
56
57</sect2>
58
59<sect2>
60<title>Installation of <application><acronym>FAM</acronym></application></title>
61
62<para>Install <application><acronym>FAM</acronym></application> by running the
63following commands:</para>
64
65<screen><userinput><command>patch -Np1 -i ../fam-&fam-version;-dnotify-1.patch &amp;&amp;
66chmod 755 configure &amp;&amp;
67autoreconf -f -i &amp;&amp;
68./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
69make &amp;&amp;
70make install</command></userinput></screen>
71
72</sect2>
73
74<sect2>
75<title>Command explanations</title>
76
77<para><command>patch -Np1 -i ../fam-&fam-version;-dnotify-1.patch</command>:
78This patch enables <application><acronym>FAM</acronym></application> to use
79the Linux kernel dnotify mechanism to inform the calling process of
80file modifications, rather than polling the file system for
81modifications.</para>
82
83<para><command>chmod 755 configure</command>: <command>configure</command> is
84set to read-only and <command>autoreconf</command> will fail if the
85permissions aren't changed.</para>
86
87<para><command>autoreconf -f -i</command>: The autotools need rebuilding
88because the dnotify patch affects <filename>configure.ac</filename> and
89<filename>Makefile.am</filename>.</para>
90
91</sect2>
92
93<sect2>
94<title>Configuring <application><acronym>FAM</acronym></application></title>
95
96<sect3><title>Config files</title>
97
98<para><filename>/etc/rpc</filename>,
99 <filename>/etc/fam.conf</filename>,
100 <filename>/etc/inetd.conf</filename>,
101 <filename>/etc/xinetd.d/fam</filename>
102 or <filename>/etc/xinetd.conf</filename>
103 </para>
104</sect3>
105
106<sect3><title>Configuration Information</title>
107
108<para>Configuring the file alteration monitor.</para>
109
110<para>If you use <application>inetd</application>, add the
111<application><acronym>FAM</acronym></application> entry to
112<filename>/etc/inetd.conf</filename> with the
113following command:</para>
114
115<screen><userinput><command>echo "sgi_fam/1-2 stream rpc/tcp wait root /usr/sbin/famd fam" \
116 &gt;&gt; /etc/inetd.conf</command></userinput></screen>
117
118<para>If you use <application>xinetd</application>, the following command will create
119the <application><acronym>FAM</acronym></application> file as
120<filename>/etc/xinetd.d/sgi_fam</filename>:
121(be sure the "nogroup" group exists):</para>
122
123<screen><userinput><command>cat &gt;&gt; /etc/xinetd.d/sgi_fam &lt;&lt; "EOF"</command>
124# Begin /etc/xinetd.d/sgi_fam
125
126# description: FAM - file alteration monitor
127 service sgi_fam
128 {
129 type = RPC UNLISTED
130 socket_type = stream
131 user = root
132 group = nogroup
133 server = /usr/sbin/famd
134 wait = yes
135 protocol = tcp
136 rpc_version = 2
137 rpc_number = 391002
138 }
139
140# End /etc/xinetd.d/sgi_fam
141<command>EOF</command></userinput></screen>
142
143<para>If you do not have an <command>inetd</command> daemon installed and have
144no wish to install one, you can also start <command>famd</command> during
145system startup by installing the <filename>/etc/rc.d/init.d/fam</filename>
146init script included in the
147<xref linkend="intro-important-bootscripts"/> package.</para>
148
149<screen><userinput><command>make install-fam</command></userinput></screen>
150
151</sect3>
152
153</sect2>
154
155<sect2>
156<title>Contents</title>
157
158<para>The <application><acronym>FAM</acronym></application> package contains
159the <command>famd</command> executable and <filename>libfam</filename>
160libraries.</para>
161
162</sect2>
163
164<sect2><title>Description</title>
165
166<sect3><title>famd</title>
167
168<para><command>famd</command> is the file alteration monitor.</para>
169
170</sect3>
171
172</sect2>
173
174</sect1>
175
Note: See TracBrowser for help on using the repository browser.