Name

find_config_location — return the location of the requested config file

Synopsis

use Wacs;
scalar find_config_location(configuration_filename); 
scalar configuration_filename;
 

Summary

find_config_location returns the location of the requested config file. It first checks the directory specified by the WACS_CONFIG environment variable, and then tries the built-in list of possible WACS configuration file locations. This list is normally: /etc/wacs.d, then /usr/local/etc/wacs.d and finally /opt/wacs/etc/wacs.d . If the specified file is not found in any of these locations, a null string is returned.

[Note]Note

The location specified by the environment variable WACS_CONFIG takes precidence, if and only if the requested file is present there. The normal directories are searched afterwards if the file is not found in the directory specified.

Availability

find_config_location is available in both perl and php.