[52d29f7] | 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 |
|
---|
[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">
|
---|
[52d29f7] | 10 | <!ENTITY fam-size "320 KB">
|
---|
| 11 | <!ENTITY fam-buildsize "6.9 MB">
|
---|
[b2775d6d] | 12 | <!ENTITY fam-time "0.37 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[6492ac2] | 15 | <sect1 id="fam" xreflabel="FAM-&fam-version;">
|
---|
[b2775d6d] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[b2775d6d] | 19 | </sect1info>
|
---|
[7f72cbf] | 20 | <?dbhtml filename="fam.html"?>
|
---|
[6492ac2] | 21 | <title>FAM-&fam-version;</title>
|
---|
| 22 |
|
---|
[52d29f7] | 23 | <sect2>
|
---|
[b8fa16e] | 24 | <title>Introduction to <application><acronym>FAM</acronym></application></title>
|
---|
| 25 |
|
---|
[52d29f7] | 26 | <para>The <application><acronym>FAM</acronym></application> package contains a
|
---|
| 27 | File Alteration Monitor which is useful for notifying applications of
|
---|
| 28 | changes to the file system.</para>
|
---|
[b8fa16e] | 29 |
|
---|
[52d29f7] | 30 | <sect3><title>Package information</title>
|
---|
| 31 | <itemizedlist spacing='compact'>
|
---|
| 32 | <listitem><para>Download (HTTP): <ulink
|
---|
| 33 | url="&fam-download-http;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download (FTP): <ulink
|
---|
| 35 | url="&fam-download-ftp;"/></para></listitem>
|
---|
[85a135f] | 36 | <listitem><para>Download MD5 sum: &fam-md5sum;</para></listitem>
|
---|
[52d29f7] | 37 | <listitem><para>Download size: &fam-size;</para></listitem>
|
---|
[518538f] | 38 | <listitem><para>Estimated disk space required:
|
---|
[52d29f7] | 39 | &fam-buildsize;</para></listitem>
|
---|
| 40 | <listitem><para>Estimated build time:
|
---|
| 41 | &fam-time;</para></listitem></itemizedlist>
|
---|
| 42 | </sect3>
|
---|
[b8fa16e] | 43 |
|
---|
[52d29f7] | 44 | <sect3><title>Additional downloads</title>
|
---|
| 45 | <itemizedlist spacing='compact'>
|
---|
| 46 | <listitem><para>Dnotify patch (Recommended): <ulink
|
---|
[b2775d6d] | 47 | url="&patch-root;/fam-&fam-version;-dnotify-1.patch"/></para></listitem>
|
---|
| 48 | </itemizedlist>
|
---|
[52d29f7] | 49 | </sect3>
|
---|
[b8fa16e] | 50 |
|
---|
[52d29f7] | 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>
|
---|
[b8fa16e] | 56 |
|
---|
[52d29f7] | 57 | </sect2>
|
---|
[b8fa16e] | 58 |
|
---|
[52d29f7] | 59 | <sect2>
|
---|
[b8fa16e] | 60 | <title>Installation of <application><acronym>FAM</acronym></application></title>
|
---|
| 61 |
|
---|
[52d29f7] | 62 | <para>Install <application><acronym>FAM</acronym></application> by running the
|
---|
| 63 | following commands:</para>
|
---|
[b8fa16e] | 64 |
|
---|
[52d29f7] | 65 | <screen><userinput><command>patch -Np1 -i ../fam-&fam-version;-dnotify-1.patch &&
|
---|
[b2775d6d] | 66 | chmod 755 configure &&
|
---|
[52d29f7] | 67 | autoreconf -f -i &&
|
---|
| 68 | ./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
| 69 | make &&
|
---|
| 70 | make install</command></userinput></screen>
|
---|
[b8fa16e] | 71 |
|
---|
[52d29f7] | 72 | </sect2>
|
---|
| 73 |
|
---|
| 74 | <sect2>
|
---|
| 75 | <title>Command explanations</title>
|
---|
[b8fa16e] | 76 |
|
---|
[d140e26] | 77 | <para><command>patch -Np1 -i ../fam-&fam-version;-dnotify-1.patch</command>:
|
---|
| 78 | This patch enables <application><acronym>FAM</acronym></application> to use
|
---|
| 79 | the Linux kernel dnotify mechanism to inform the calling process of
|
---|
[52d29f7] | 80 | file modifications, rather than polling the file system for
|
---|
| 81 | modifications.</para>
|
---|
[b8fa16e] | 82 |
|
---|
[b2775d6d] | 83 | <para><command>chmod 755 configure</command>: <command>configure</command> is
|
---|
| 84 | set to read-only and <command>autoreconf</command> will fail if the
|
---|
| 85 | permissions aren't changed.</para>
|
---|
| 86 |
|
---|
| 87 | <para><command>autoreconf -f -i</command>: The autotools need rebuilding
|
---|
| 88 | because the dnotify patch affects <filename>configure.ac</filename> and
|
---|
| 89 | <filename>Makefile.am</filename>.</para>
|
---|
[b8fa16e] | 90 |
|
---|
[52d29f7] | 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2>
|
---|
| 94 | <title>Configuring <application><acronym>FAM</acronym></application></title>
|
---|
[b8fa16e] | 95 |
|
---|
[52d29f7] | 96 | <sect3><title>Config files</title>
|
---|
[b8fa16e] | 97 |
|
---|
[52d29f7] | 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>
|
---|
[b8fa16e] | 105 |
|
---|
[52d29f7] | 106 | <sect3><title>Configuration Information</title>
|
---|
[b8fa16e] | 107 |
|
---|
[52d29f7] | 108 | <para>Configuring the file alteration monitor.</para>
|
---|
[b8fa16e] | 109 |
|
---|
[52d29f7] | 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
|
---|
[b2775d6d] | 113 | following command:</para>
|
---|
[b8fa16e] | 114 |
|
---|
[8d9eb0f] | 115 | <screen><userinput><command>echo "sgi_fam/1-2 stream rpc/tcp wait root /usr/sbin/famd fam" \
|
---|
| 116 | >> /etc/inetd.conf</command></userinput></screen>
|
---|
[b8fa16e] | 117 |
|
---|
[52d29f7] | 118 | <para>If you use <application>xinetd</application>, add an entry to
|
---|
| 119 | <filename>/etc/xinetd.conf</filename> with the following command (be
|
---|
| 120 | sure the "nogroup" group exists):</para>
|
---|
[b8fa16e] | 121 |
|
---|
[52d29f7] | 122 | <screen><userinput><command>cat >> /etc/xinetd.conf << "EOF"</command>
|
---|
| 123 | # description: FAM - file alteration monitor
|
---|
| 124 | service sgi_fam
|
---|
| 125 | {
|
---|
| 126 | type = RPC UNLISTED
|
---|
| 127 | socket_type = stream
|
---|
| 128 | user = root
|
---|
| 129 | group = nogroup
|
---|
| 130 | server = /usr/sbin/famd
|
---|
| 131 | wait = yes
|
---|
| 132 | protocol = tcp
|
---|
| 133 | rpc_version = 2
|
---|
| 134 | rpc_number = 391002
|
---|
| 135 | }
|
---|
| 136 | <command>EOF</command></userinput></screen>
|
---|
[b8fa16e] | 137 |
|
---|
[b2775d6d] | 138 | <para>If you do not have an <command>inetd</command> daemon installed and have
|
---|
| 139 | no wish to install one, you can also start <command>famd</command> during
|
---|
| 140 | system startup by installing the <filename>/etc/rc.d/init.d/fam</filename>
|
---|
[52d29f7] | 141 | init script included in the
|
---|
| 142 | <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
[b8fa16e] | 143 |
|
---|
[52d29f7] | 144 | <screen><userinput><command>make install-fam</command></userinput></screen>
|
---|
[b8fa16e] | 145 |
|
---|
[52d29f7] | 146 | </sect3>
|
---|
[b8fa16e] | 147 |
|
---|
[52d29f7] | 148 | </sect2>
|
---|
| 149 |
|
---|
| 150 | <sect2>
|
---|
| 151 | <title>Contents</title>
|
---|
[b8fa16e] | 152 |
|
---|
[52d29f7] | 153 | <para>The <application><acronym>FAM</acronym></application> package contains
|
---|
| 154 | the <command>famd</command> executable and <filename>libfam</filename>
|
---|
| 155 | libraries.</para>
|
---|
[b8fa16e] | 156 |
|
---|
[52d29f7] | 157 | </sect2>
|
---|
[b8fa16e] | 158 |
|
---|
[52d29f7] | 159 | <sect2><title>Description</title>
|
---|
[b8fa16e] | 160 |
|
---|
[52d29f7] | 161 | <sect3><title>famd</title>
|
---|
[b8fa16e] | 162 |
|
---|
[52d29f7] | 163 | <para><command>famd</command> is the file alteration monitor.</para>
|
---|
[b8fa16e] | 164 |
|
---|
[52d29f7] | 165 | </sect3>
|
---|
[b8fa16e] | 166 |
|
---|
[52d29f7] | 167 | </sect2>
|
---|
[6492ac2] | 168 |
|
---|
| 169 | </sect1>
|
---|
[52d29f7] | 170 |
|
---|