added pre_start and pre_restart hook for including New Relic agent