Got a process that you want to restart in a script but it doesn’t respond nicely? Use the sleep command in your script and check its status after you start, stop, or kill it. After incrementally backing off a few times, waiting longer and longer, I give up and exit …