Hi,
I want to use Chef push jobs, for example to stop and start a service on windows nodes.
How do I know if the service was stopped or started successfully ?
Currently I use ‘net start service1’ and ‘net stop service1’ in the white list and am able to start and stop the service.
I see there is the execution of jobs returns a status for example, ‘status: complete’.
However even if I specify an invalid service name to ‘net start’ it still returns ‘status:complete’.
So it seems that the status that is returned here is simply whether the command was executed or not.
What are others doing to verify whether the jobs executed by push jobs successfully execute or not.
thanks in advance.