Description
Right now, it appears like we log success messages right at the beginning of the method call irrespective of whether the service was successfully stopped / started. In a scenario where the user issues "service serviceName start" and immediately sees a success message but, the service in reality has failed to start leads to some amount of confusion.
The proposed change will only log success messages if the operation was actually successful.