When to wake up? The optimal waking-up strategies for starvation-induced persistence