57.3. Module Configuration Settings

This module demonstrates how the various Cron file locations, formats, and programs on different operating systems can be supported by the same code. If you look in its directory, you will see numerous files with names starting with config-, such as config-solaris and config-redhat-linux. Each specifies the files to read and commands to use for particular operating systems. The code in cron-lib.pl makes numerous references to %config when listing and updating jobs, which, of course, is filled with the contents of /etc/webmin/cron/config. This file, in turn, comes from the appropriate config- file in the module's directory, chosen at the time Webmin was installed.

If your module manages some service that differs ...

Get Managing Linux® Systems with Webmin™ System Administration and Module Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.