files.cfg
In files.cfg, you can centrally manage system configuration files (such as /etc/inetd.conf, /etc/motd, ...), and indeed any text file. The advantages to doing this include: having centralized backups, diffing and doing checksums against the central copy, easy access to common configuration file components, per-system customizations, no losing track of what you have written, greater understanding of the whole, etc.
The form of a file stanza is:
<file> [path "<filepath>"] [mode <octal filemode> uid <number> gid <number>] <text line> <text line> ...files.cfg is much like programs.cfg, except that it can and should contain non-program files and/or programs external to the PIKT setup. Most of what is said about programs.cfg above applies also to files.cfg.
Specifying a file's mode (e.g., 644), uid (e.g., 0), and gid (e.g., 1) is optional. If they are absent, the defaults are 640, 0 & 0.
In files.cfg, unlike in programs.cfg, there is no default path: All file stanzas in files.cfg must include the "path" specification (or the stanza identifiers must be full pathnames.) (In programs.cfg, path-less programs get installed in the =piktdir/lib/programs directory.)
Refer to the sample files.cfg for examples.
![]() | 1st page | next page ![]() |