Fix detection of whether a service running and whether it is enabled.
Correctly run the various service actions.