startup script now waits for service availability