configure hook is called during install and therefore restarting openhab service during install causes race condition as we are trying to restart services of snap which is not yet fully installed
read-config helper is chain command, which is also used for stop command. Check for influxdb state only if openHAB service is not running and ignore check any other time