Is there a way implement delays when restarting services?
I am running a software called elasticsearch. When restarting it, a new instance sometimes comes up before the old one has fully died and it causes a lot of problems. Is there a way to have restarts shut down a process, wait a few seconds, and then start the service back up again?