Use os commands to determine service state for delays.