default enable elasticsearch service, and sleep 2 seconds when restarting service