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-size "320 KB">
|
---|
10 | <!ENTITY fam-buildsize "6.9 MB">
|
---|
11 | <!ENTITY fam-time "0.37 SBU">
|
---|
12 | ]>
|
---|
13 |
|
---|
14 | <sect1 id="fam" xreflabel="FAM-&fam-version;">
|
---|
15 | <sect1info>
|
---|
16 | <othername>$LastChangedBy$</othername>
|
---|
17 | <date>$Date$</date>
|
---|
18 | </sect1info>
|
---|
19 | <?dbhtml filename="fam.html"?>
|
---|
20 | <title>FAM-&fam-version;</title>
|
---|
21 |
|
---|
22 | <sect2>
|
---|
23 | <title>Introduction to <application><acronym>FAM</acronym></application></title>
|
---|
24 |
|
---|
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>
|
---|
28 |
|
---|
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>
|
---|
41 |
|
---|
42 | <sect3><title>Additional downloads</title>
|
---|
43 | <itemizedlist spacing='compact'>
|
---|
44 | <listitem><para>Dnotify patch (Recommended): <ulink
|
---|
45 | url="&patch-root;/fam-&fam-version;-dnotify-1.patch"/></para></listitem>
|
---|
46 | </itemizedlist>
|
---|
47 | </sect3>
|
---|
48 |
|
---|
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>
|
---|
54 |
|
---|
55 | </sect2>
|
---|
56 |
|
---|
57 | <sect2>
|
---|
58 | <title>Installation of <application><acronym>FAM</acronym></application></title>
|
---|
59 |
|
---|
60 | <para>Install <application><acronym>FAM</acronym></application> by running the
|
---|
61 | following commands:</para>
|
---|
62 |
|
---|
63 | <screen><userinput><command>patch -Np1 -i ../fam-&fam-version;-dnotify-1.patch &&
|
---|
64 | chmod 755 configure &&
|
---|
65 | autoreconf -f -i &&
|
---|
66 | ./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
67 | make &&
|
---|
68 | make install</command></userinput></screen>
|
---|
69 |
|
---|
70 | </sect2>
|
---|
71 |
|
---|
72 | <sect2>
|
---|
73 | <title>Command explanations</title>
|
---|
74 |
|
---|
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
|
---|
78 | file modifications, rather than polling the file system for
|
---|
79 | modifications.</para>
|
---|
80 |
|
---|
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>
|
---|
88 |
|
---|
89 | </sect2>
|
---|
90 |
|
---|
91 | <sect2>
|
---|
92 | <title>Configuring <application><acronym>FAM</acronym></application></title>
|
---|
93 |
|
---|
94 | <sect3><title>Config files</title>
|
---|
95 |
|
---|
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>
|
---|
103 |
|
---|
104 | <sect3><title>Configuration Information</title>
|
---|
105 |
|
---|
106 | <para>Configuring the file alteration monitor.</para>
|
---|
107 |
|
---|
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
|
---|
111 | following command:</para>
|
---|
112 |
|
---|
113 | <screen><userinput><command>echo "sgi_fam/1-2 stream rpc/tcp wait root /usr/sbin/famd fam" >> /etc/inetd.conf</command></userinput></screen>
|
---|
114 |
|
---|
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>
|
---|
118 |
|
---|
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>
|
---|
134 |
|
---|
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>
|
---|
138 | init script included in the
|
---|
139 | <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
140 |
|
---|
141 | <screen><userinput><command>make install-fam</command></userinput></screen>
|
---|
142 |
|
---|
143 | </sect3>
|
---|
144 |
|
---|
145 | </sect2>
|
---|
146 |
|
---|
147 | <sect2>
|
---|
148 | <title>Contents</title>
|
---|
149 |
|
---|
150 | <para>The <application><acronym>FAM</acronym></application> package contains
|
---|
151 | the <command>famd</command> executable and <filename>libfam</filename>
|
---|
152 | libraries.</para>
|
---|
153 |
|
---|
154 | </sect2>
|
---|
155 |
|
---|
156 | <sect2><title>Description</title>
|
---|
157 |
|
---|
158 | <sect3><title>famd</title>
|
---|
159 |
|
---|
160 | <para><command>famd</command> is the file alteration monitor.</para>
|
---|
161 |
|
---|
162 | </sect3>
|
---|
163 |
|
---|
164 | </sect2>
|
---|
165 |
|
---|
166 | </sect1>
|
---|
167 |
|
---|