Control: tags -1 moreinfo
Hi,
the manpage logrotate.conf says:
postrotate/endscript
The lines between postrotate and endscript (both of
which must appear on lines by themselves) are executed (using /bin/sh)
after the log
file is rotated. These directives may only appear inside
a log file definition. Normally, the absolute path to the log file is
passed as
first argument to the script. If sharedscripts is
specified, whole pattern is passed to the script. See also prerotate.
See sharedscripts
and nosharedscripts for error handling.
Does this match your use usecase or is still something off?
Best regards
Christian Göttsche