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