]> gitweb.michael.orlitzky.com - amavis-logwatch.git/commit
amavis-logwatch: support forthcoming amavis-2.12.0 "starting" format. 1.51.04
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 6 Aug 2021 14:11:20 +0000 (10:11 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 6 Aug 2021 14:11:20 +0000 (10:11 -0400)
commitd653037ca4a65c7dca3f296c8c0b8908309cbe71
treea43c84621aa738d3f965e8826d94d9fd2143b5ab
parenta4f2cfda3758015e7aa8f1e3c09fb8f70772f776
amavis-logwatch: support forthcoming amavis-2.12.0 "starting" format.

When amavis-2.12.0 starts or reloads, it outputs its name as "amavis"
instead of the "amavisd-new" that previous versions used. This commit
adds support for the name "amavis". It also allows the "starting" line
to contain "(warm)", with the "(warm)" being ignored so that the name
of the amavis daemon is captured properly.

This fixes missed lines of the form,

  Aug  6 00:00:54 mx1 amavis[10199]: starting. (warm) /usr/sbin/amavisd at
  mx1.example.com amavis-2.12.0 (20190725), Unicode aware, LANG="C.utf8"

which is very likely to be the final format used by amavis-2.12.0.
amavis-logwatch