Next Previous Contents

4. The sysf.conf File

The sysf.conf file is the file where all the sysf entries are described. Each entry is characterised by

4.1 sysf.conf syntax

The sysf.conf file lists all the sysf entry files. Each entry fits usually on a single line, but this is not a requirement as a semi colon is used to mark the end of every definition. Line starting with a # are considered as comments. The syntax is as follow:

    ENTRY_NAME = CONFIG_GROUP SYSTEM_FILE CONFIG_NAME [FLAGS];
where

4.2 Include file

It is possible to include a file within the sysf.conf file by adding the line

INCLUDE INCLUDE_FILE;
where INCLUDE_FILE is the name of the file to include using a path relative to the config directory. The included file must follow the same syntax as the sysf.conf file and nested includes are allowed.

4.3 Auxiliary commands flags

When one of the flags C, I, U is specified in the sysf.conf file, sysf executes the command

    /CONFIG_DIR/BIN/ENTRY_NAME ACTION COM SYSTEM_FILE CONFIG_FILE ECHO
to perform various operations. COM is the name of the sysf command. The ACTION is dictated by the sysf command and the flags are set from the sysf entry. They are described in the section on auxiliary commands.

4.4 Example

## we put the RC files in a separate configuration file.
INCLUDE sysf.conf_RC;
######## GROUP etc ############# ######################################
etc_DL       =  etc     /etc                    etc_DL     gh;
etc_D        =  etc     /etc                    etc_D      d;
aspell.conf  =  etc     /usr/etc/aspell.conf    aspell.conf;
clock        =  etc     /etc/sysconfig/clock    clock;
i18n         =  etc     /etc/sysconfig/i18n     i18n;
identd.conf  =  etc     /etc/identd.conf        identd.conf;
inittab      =  etc     /etc/inittab            inittab;
ld.so.conf   =  etc     /etc/ld.so.conf         ld.so.conf;
lilo.conf    =  etc     /etc/lilo.conf          lilo.conf       h;
logrotate.conf = etc    /etc/logrotate.conf     logrotate.conf;
man.config   =  etc     /etc/man.config         man.config;
nsswitch.conf=  etc     /etc/nsswitch.conf      nsswitch.conf;
ntp.conf     =  etc     /etc/ntp.conf           ntp.conf;
resolv.conf  =  etc     /etc/resolv.conf        resolv.conf;
services     =  etc     /etc/services           services;
shells       =  etc     /etc/shells             shells;
sysf.cf      =  etc     /etc/sysf.cf            sysf.cf;
syslog.conf  =  etc     /etc/syslog.conf        syslog.conf;
######################### ROOT ######################################
root_cshrc   =  root    /root/.cshrc            root_cshrc;
root_rhosts  =  root    /root/.rhosts           root_rhosts;
######## GROUP net ############# ######################################
defaultdomain=  net     /etc/defaultdomain      defaultdomain;
ifcfg-eth0   =  net     /etc/sysconfig/network-scripts/ifcfg-eth0 ifcfg-eth0 h;
network      =  net     /etc/sysconfig/network  network         h;
yp.conf      =  net     /etc/yp.conf            yp.conf;
######## GROUP nis ############# ######################################
hosts        =  nis     /etc/hosts              hosts           h;
passwd       =  nis     /etc/passwd             passwd          h;
######## GROUP cron ############ ######################################
tetex.cron   =  cron    /etc/cron.daily/tetex.cron      tetex.cron r; 
crontab      =  cron    /tmp/crontab.temp       crontab         C; 
tripwire-check = cron   /etc/cron.daily/tripwire-check tripwire-check r;
######## GROUP printing ###############################################
printcap     =  printing /etc/printcap          printcap I;
printcap.local = printing /etc/printcap.local   printcap.local I;
lpd.conf     =  printing /etc/lpd.conf          lpd.conf I;
lpd.perms    =  printing /etc/lpd.perms         lpd.perms I;


Next Previous Contents