add pre_restart script