FAM-2.7.0

Introduction to FAM

The FAM package contains a File Alteration Monitor which is useful for notifying applications of changes to the file system.

Package information

Additional downloads

FAM dependencies

Required

portmap-5beta

Installation of FAM

Install FAM by running the following commands:

patch -Np1 -i ../fam-2.7.0-dnotify-1.patch &&
autoreconf -f -i &&
./configure --prefix=/usr --sysconfdir=/etc &&
make &&
make install

Command explanations

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

autoreconf -f -i This command is necessary since the dnotify patch affects the configure.ac and Makefile.am.

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/sbin/famd 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/sbin/famd
        wait            = yes
        protocol        = tcp
        rpc_version     = 2
        rpc_number      = 391002
    }
EOF

If you do not have any inetd daemon installed and have no wish to install one, you can also start fam during system startup by installing /etc/rc.d/init.d/fam init script included in the blfs-bootscripts-5.1 package.

make install-fam

Contents

The FAM package contains the famd executable and libfam libraries.

Description

famd

famd is the file alteration monitor.