add postrotate option along with sharedscripts