Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the relationship between command line options and configuration file variables?

0
Posted

What is the relationship between command line options and configuration file variables?

0

The configuration file variables are prefixed with $postfix_ for postfix-logwatch, and $amavis_ for amavis-logwatch. This is done for the benefit of logwatch, which passes variables to a service script via environment. In addition logwatch .conf variables are case insensitive; camel-case is used in the configuration files to enhance readability. For example, the amavis-logwatch configuration file variable $amavis_Line_Style is equivalent to the command line option –line_style. Internally, postfix-logwatch and amavis-logwatch strip the $postfix_ and $amavis_ prefixes, and lowercase the variables. In standalone mode, the default configuration file is read first (if it exists), or any configuration file(s) specified via command line are read. Subsequent command line options override any earlier settings, in a left to right fashion.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.