• and then attempts to restart the service regardless of the service state

    (emphasis mine)

    What could possibly go wrong? 😀