[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[b8fa16e] | 7 | <!ENTITY fam-download-http "http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/fam-&fam-version;.tar.gz">
|
---|
[52d29f7] | 8 | <!ENTITY fam-download-ftp "ftp://oss.sgi.com/projects/fam/download/stable/fam-&fam-version;.tar.gz">
|
---|
[85a135f] | 9 | <!ENTITY fam-md5sum "1bf3ae6c0c58d3201afc97c6a4834e39">
|
---|
[b409cd8] | 10 | <!ENTITY fam-size "301 KB">
|
---|
| 11 | <!ENTITY fam-buildsize "7.7 MB">
|
---|
| 12 | <!ENTITY fam-time "0.26 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[6492ac2] | 15 | <sect1 id="fam" xreflabel="FAM-&fam-version;">
|
---|
[b2775d6d] | 16 | <sect1info>
|
---|
[e145553] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[b2775d6d] | 19 | </sect1info>
|
---|
[e145553] | 20 |
|
---|
[7f72cbf] | 21 | <?dbhtml filename="fam.html"?>
|
---|
[6492ac2] | 22 | <title>FAM-&fam-version;</title>
|
---|
| 23 |
|
---|
[e145553] | 24 | <indexterm zone="fam">
|
---|
[20f5e71a] | 25 | <primary sortas="a-FAM">FAM</primary>
|
---|
[e145553] | 26 | </indexterm>
|
---|
| 27 |
|
---|
[52d29f7] | 28 | <sect2>
|
---|
[b8fa16e] | 29 | <title>Introduction to <application><acronym>FAM</acronym></application></title>
|
---|
| 30 |
|
---|
[52d29f7] | 31 | <para>The <application><acronym>FAM</acronym></application> package contains a
|
---|
| 32 | File Alteration Monitor which is useful for notifying applications of
|
---|
| 33 | changes to the file system.</para>
|
---|
[b8fa16e] | 34 |
|
---|
[52d29f7] | 35 | <sect3><title>Package information</title>
|
---|
[e145553] | 36 | <itemizedlist spacing='compact'>
|
---|
| 37 | <listitem><para>Download (HTTP): <ulink url="&fam-download-http;"/></para></listitem>
|
---|
| 38 | <listitem><para>Download (FTP): <ulink url="&fam-download-ftp;"/></para></listitem>
|
---|
| 39 | <listitem><para>Download MD5 sum: &fam-md5sum;</para></listitem>
|
---|
| 40 | <listitem><para>Download size: &fam-size;</para></listitem>
|
---|
| 41 | <listitem><para>Estimated disk space required: &fam-buildsize;</para></listitem>
|
---|
| 42 | <listitem><para>Estimated build time: &fam-time;</para></listitem>
|
---|
| 43 | </itemizedlist>
|
---|
[52d29f7] | 44 | </sect3>
|
---|
[b8fa16e] | 45 |
|
---|
[e145553] | 46 | <sect3>
|
---|
| 47 | <title>Additional downloads</title>
|
---|
[52d29f7] | 48 | <itemizedlist spacing='compact'>
|
---|
[e145553] | 49 | <listitem><para>Dnotify patch (Recommended):
|
---|
| 50 | <ulink url="&patch-root;/fam-&fam-version;-dnotify-1.patch"/></para></listitem>
|
---|
[b2775d6d] | 51 | </itemizedlist>
|
---|
[52d29f7] | 52 | </sect3>
|
---|
[b8fa16e] | 53 |
|
---|
[e145553] | 54 | <sect3>
|
---|
| 55 | <title><application><acronym>FAM</acronym></application> dependencies</title>
|
---|
| 56 |
|
---|
| 57 | <sect4>
|
---|
| 58 | <title>Required</title>
|
---|
| 59 | <para><xref linkend="portmap"/></para></sect4>
|
---|
[52d29f7] | 60 | </sect3>
|
---|
[b8fa16e] | 61 |
|
---|
[52d29f7] | 62 | </sect2>
|
---|
[b8fa16e] | 63 |
|
---|
[52d29f7] | 64 | <sect2>
|
---|
[b8fa16e] | 65 | <title>Installation of <application><acronym>FAM</acronym></application></title>
|
---|
| 66 |
|
---|
[52d29f7] | 67 | <para>Install <application><acronym>FAM</acronym></application> by running the
|
---|
| 68 | following commands:</para>
|
---|
[b8fa16e] | 69 |
|
---|
[52d29f7] | 70 | <screen><userinput><command>patch -Np1 -i ../fam-&fam-version;-dnotify-1.patch &&
|
---|
[b2775d6d] | 71 | chmod 755 configure &&
|
---|
[52d29f7] | 72 | autoreconf -f -i &&
|
---|
| 73 | ./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
[e145553] | 74 | make</command></userinput></screen>
|
---|
| 75 |
|
---|
| 76 | <para>Now, as the root user:</para>
|
---|
| 77 |
|
---|
| 78 | <screen><userinput role='root'><command>make install</command></userinput></screen>
|
---|
[b8fa16e] | 79 |
|
---|
[52d29f7] | 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2>
|
---|
[a16cb066] | 83 | <title>Command Explanations</title>
|
---|
[b8fa16e] | 84 |
|
---|
[d140e26] | 85 | <para><command>patch -Np1 -i ../fam-&fam-version;-dnotify-1.patch</command>:
|
---|
| 86 | This patch enables <application><acronym>FAM</acronym></application> to use
|
---|
| 87 | the Linux kernel dnotify mechanism to inform the calling process of
|
---|
[52d29f7] | 88 | file modifications, rather than polling the file system for
|
---|
| 89 | modifications.</para>
|
---|
[b8fa16e] | 90 |
|
---|
[b2775d6d] | 91 | <para><command>chmod 755 configure</command>: <command>configure</command> is
|
---|
| 92 | set to read-only and <command>autoreconf</command> will fail if the
|
---|
| 93 | permissions aren't changed.</para>
|
---|
| 94 |
|
---|
| 95 | <para><command>autoreconf -f -i</command>: The autotools need rebuilding
|
---|
| 96 | because the dnotify patch affects <filename>configure.ac</filename> and
|
---|
| 97 | <filename>Makefile.am</filename>.</para>
|
---|
[b8fa16e] | 98 |
|
---|
[52d29f7] | 99 | </sect2>
|
---|
| 100 |
|
---|
| 101 | <sect2>
|
---|
[a16cb066] | 102 | <title>Configuring <application>FAM</application></title>
|
---|
[b8fa16e] | 103 |
|
---|
[e145553] | 104 | <sect3 id='fam-config'>
|
---|
| 105 | <title>Config files</title>
|
---|
[b8fa16e] | 106 |
|
---|
[52d29f7] | 107 | <para><filename>/etc/rpc</filename>,
|
---|
| 108 | <filename>/etc/fam.conf</filename>,
|
---|
[e145553] | 109 | <filename>/etc/inetd.conf</filename> or
|
---|
| 110 | <filename>/etc/xinetd.conf</filename> or
|
---|
[52d29f7] | 111 | <filename>/etc/xinetd.d/fam</filename>
|
---|
[e145553] | 112 | </para>
|
---|
| 113 |
|
---|
| 114 | <indexterm zone="fam fam-config">
|
---|
| 115 | <primary sortas="e-etc-rpc">/etc/rpc</primary>
|
---|
| 116 | </indexterm>
|
---|
| 117 | <indexterm zone="fam fam-config">
|
---|
| 118 | <primary sortas="e-etc-fam.conf">/etc/fam.conf</primary>
|
---|
| 119 | </indexterm>
|
---|
| 120 | <indexterm zone="fam fam-config">
|
---|
| 121 | <primary sortas="e-etc-inetd.conf">/etc/inetd.conf</primary>
|
---|
| 122 | </indexterm>
|
---|
| 123 | <indexterm zone="fam fam-config">
|
---|
| 124 | <primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary>
|
---|
| 125 | </indexterm>
|
---|
| 126 | <indexterm zone="fam fam-config">
|
---|
| 127 | <primary sortas="e-etc-xinetd.d-sgi_fam">/etc/xinetd.d/sgi_fam</primary>
|
---|
| 128 | </indexterm>
|
---|
[52d29f7] | 129 | </sect3>
|
---|
[b8fa16e] | 130 |
|
---|
[52d29f7] | 131 | <sect3><title>Configuration Information</title>
|
---|
[b8fa16e] | 132 |
|
---|
[52d29f7] | 133 | <para>Configuring the file alteration monitor.</para>
|
---|
[b8fa16e] | 134 |
|
---|
[52d29f7] | 135 | <para>If you use <application>inetd</application>, add the
|
---|
| 136 | <application><acronym>FAM</acronym></application> entry to
|
---|
[e145553] | 137 | <filename>/etc/inetd.conf</filename> with the following command:</para>
|
---|
[b8fa16e] | 138 |
|
---|
[8d9eb0f] | 139 | <screen><userinput><command>echo "sgi_fam/1-2 stream rpc/tcp wait root /usr/sbin/famd fam" \
|
---|
| 140 | >> /etc/inetd.conf</command></userinput></screen>
|
---|
[b8fa16e] | 141 |
|
---|
[e145553] | 142 | <para>If you use <application>xinetd</application>, the following command will
|
---|
| 143 | create the <application><acronym>FAM</acronym></application> file as
|
---|
| 144 | <filename>/etc/xinetd.d/sgi_fam</filename> (be sure the "nogroup" group
|
---|
| 145 | exists):</para>
|
---|
[b8fa16e] | 146 |
|
---|
[1f672c1] | 147 | <screen><userinput><command>cat >> /etc/xinetd.d/sgi_fam << "EOF"</command>
|
---|
| 148 | # Begin /etc/xinetd.d/sgi_fam
|
---|
| 149 |
|
---|
| 150 | # description: FAM - file alteration monitor
|
---|
[52d29f7] | 151 | service sgi_fam
|
---|
| 152 | {
|
---|
| 153 | type = RPC UNLISTED
|
---|
| 154 | socket_type = stream
|
---|
| 155 | user = root
|
---|
| 156 | group = nogroup
|
---|
| 157 | server = /usr/sbin/famd
|
---|
| 158 | wait = yes
|
---|
| 159 | protocol = tcp
|
---|
| 160 | rpc_version = 2
|
---|
| 161 | rpc_number = 391002
|
---|
| 162 | }
|
---|
[1f672c1] | 163 |
|
---|
| 164 | # End /etc/xinetd.d/sgi_fam
|
---|
[52d29f7] | 165 | <command>EOF</command></userinput></screen>
|
---|
[b8fa16e] | 166 |
|
---|
[b409cd8] | 167 | <para id='fam-init'>If you do not have an <command>inetd</command> daemon
|
---|
| 168 | installed and have no wish to install one, you can also start
|
---|
| 169 | <command>famd</command> during system startup by installing the
|
---|
| 170 | <filename>/etc/rc.d/init.d/fam</filename> init script included in the
|
---|
[52d29f7] | 171 | <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
[b8fa16e] | 172 |
|
---|
[52d29f7] | 173 | <screen><userinput><command>make install-fam</command></userinput></screen>
|
---|
[b8fa16e] | 174 |
|
---|
[e145553] | 175 | <indexterm zone="fam fam-init">
|
---|
| 176 | <primary sortas="f-fam">fam</primary>
|
---|
| 177 | </indexterm>
|
---|
| 178 |
|
---|
[52d29f7] | 179 | </sect3>
|
---|
[b8fa16e] | 180 |
|
---|
[52d29f7] | 181 | </sect2>
|
---|
| 182 |
|
---|
| 183 | <sect2>
|
---|
| 184 | <title>Contents</title>
|
---|
[b8fa16e] | 185 |
|
---|
[e145553] | 186 | <segmentedlist>
|
---|
| 187 | <segtitle>Installed Program</segtitle>
|
---|
| 188 | <segtitle>Installed Library</segtitle>
|
---|
| 189 | <segtitle>Installed Directories</segtitle>
|
---|
| 190 |
|
---|
| 191 | <seglistitem>
|
---|
| 192 | <seg>famd</seg>
|
---|
[b409cd8] | 193 | <seg>libfam.[so,a]</seg>
|
---|
[e145553] | 194 | <seg>None</seg>
|
---|
| 195 | </seglistitem>
|
---|
| 196 | </segmentedlist>
|
---|
| 197 |
|
---|
| 198 | <variablelist>
|
---|
| 199 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 200 | <?dbfo list-presentation="list"?>
|
---|
| 201 |
|
---|
| 202 | <varlistentry id="famd">
|
---|
| 203 | <term><command>famd</command></term>
|
---|
| 204 | <listitem>
|
---|
| 205 | <para>is the file alteration monitor daemon.</para>
|
---|
| 206 | <indexterm zone="fam famd">
|
---|
| 207 | <primary sortas="b-famd">famd</primary>
|
---|
| 208 | </indexterm>
|
---|
| 209 | </listitem>
|
---|
| 210 | </varlistentry>
|
---|
| 211 |
|
---|
| 212 | <varlistentry id="libfam">
|
---|
| 213 | <term><filename class='libraryfile'>libfam.[so,a]</filename></term>
|
---|
| 214 | <listitem>
|
---|
| 215 | <para>contains functions that support the file allocation monitor.</para>
|
---|
| 216 | <indexterm zone="fam libfam">
|
---|
| 217 | <primary sortas="c-libfam">libfam.[so,a]</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
| 221 |
|
---|
| 222 | </variablelist>
|
---|
[52d29f7] | 223 | </sect2>
|
---|
[6492ac2] | 224 |
|
---|
| 225 | </sect1>
|
---|
[52d29f7] | 226 |
|
---|