A small help needed in Logrotate

Hi,

I wanted to know can a custom script can be made available to run in

postroate
endscript

something like

postrotate
./scriptpath/sh-script.sh
endscript

Is this the correct syntax, or it will require any modification?

Thanks in Advance.
Neeryan

Best to fully qualify your path as current directory may vary:

use:

postrotate
/usr/local/bin/apache2/bin/scriptpath/sh-script.sh
endscript

Instead of:

postrotate
./scriptpath/sh-script.sh
endscript