fud.conf(4)


fud.conf -- fud daemon configuration files

Synopsis

   <filepath> source | target  <actions> ...
   ...

Description

This file contains configuration information that is read when the fud(1M) daemon starts. It contains a list of paths to files that fud should monitor, a keyword that describes what fud should check, and an <action>, that is typically a short system command or an invocation of a system script that fud should execute when it notices that something about the file has changed.

By default, these files are located in the /etc/fud.d directory, although a different path and filename can be specified with the -f option to the fud(1M) daemon.

File format

The configuration file consists of text lines, with a configuration entry on each line. Lines beginning with # are treated as comments and ignored.

Configuration file entry fields are:


``<filepath>''
The path to the file that fud should monitor.

source | target
The second field of an entry must contain either the source or target string. This field controls how fud will view the file and how it will react to changes.

If the value is source, then fud watches for changes in the file being monitored. If the file's modification time or inode number changes (that is, something removes and replaces the file), then fud takes the actions listed in the entry. Typically, these actions convert the information from the file into a corresponding file in the system's Linux environment. For source entries, <filepath> is normally a UNIX personality file.

If the value is target, then fud watches this file to ensure that it continues to exist. If the file is deleted at any point, then fud takes the <actions> listed for the entry to try to rebuild or restore the file. For target entries, <filepath> is normally an LKP or &posr; file.


<actions>
All fields after the first and second are treated as actions for fud to take when it notices that something about the file has changed. Actions are executed using /bin/sh.

Examples

The following fud.conf line causes a new LKP /etc/mtab file to be built when the /etc/mnttab file changes:
   /etc/mnttab source /etc/fud.d/mtab.awk < /etc/mnttab > /linux/etc/mtab
This line tells fud to monitor the /etc/mnttab file. source in the second field indicates that this file should be monitored as a data source. When fud detects a change, it will run the /etc/fud.d/mtab.awk script to process the /etc/mnttab file and produce the /linux/etc/mtab file. When this awk script finishes, fud updates its internal tables so it knows that the /linux/etc/mtab file is now current.

The next fud.conf line causes the LKP /etc/group symbolic link to be rebuilt if it is lost:

   /linux/etc/group target /etc/fud.d/linkdata.sh /unixware/etc/group /linux/etc/group

Files


/etc/fud.d/fud.conf
Default location for the LKP fud configuration file.

References

fud(1M)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004