fam-2.6.9

Introduction to fam

Download location (HTTP):       http://oss.sgi.com/projects/fam/download/fam-2.6.9.tar.gz
Download location (FTP):        ftp://oss.sgi.com/projects/fam/download/fam-2.6.9.tar.gz
Version used:                   2.6.9
Package size:                   300 KB
Estimated Disk space required:  350 KB

The fam package contains a File Alteration Monitor.

fam depends on:
portmap-5

Installation of fam

Download the fam patches from http://downloads.linuxfromscratch.org/blfs-patches.

Install fam by running the following commands:

Note: You will get warnings about make install being unable to merge entries in /etc/rpc. These can be ignored, along with any IMON or inetd.conf warnings, as we will be configuring these files after installation.

patch -Np1 -i ../fam-dnotify.patch &&
patch -Np1 -i ../fam-gcc3.patch &&
./configure --prefix=/usr --sysconfdir=/etc &&
make &&
make install

Command explanations

patch -Np1 -i ../fam-dnotify.patch : This patch causes fam to use the Linux kernel dnotify mechanism to inform the calling process of file modifications, rather than polling the file system for.

patch -Np1 -i ../fam-gcc3.patch : This patch is necessary to get fam to compile with gcc-3.2.

Configuring fam

Config files

/etc/rpc, /etc/fam.conf, /etc/inetd.conf, /etc/xinetd.d/fam or /etc/xinetd.conf

Configuration Information

Configuring the file alteration monitor.

If you use inetd, add the fam entry to /etc/inetd.conf with the following command:

echo "sgi_fam/1-2 stream  rpc/tcp wait root /usr/bin/fam fam" >> /etc/inetd.conf

If you use xinetd, add an entry to /etc/xinetd.conf with the following command (be sure the "nogroup" group exists):

cat >> /etc/xinetd.conf << "EOF"
    # description: FAM - file alteration monitor
    service sgi_fam
    {
        type            = RPC UNLISTED
        socket_type     = stream
        user            = root
        group           = nogroup
        server          = /usr/bin/fam
        wait            = yes
        protocol        = tcp
        rpc_version     = 2
        rpc_number      = 391002
    }
EOF

Contents

The fam package contains fam and libfam libraries.

Description

fam

fam is the file alteration monitor.