log when we stop waiting for a service to stop

Leave some evidence of the failure for the ops folks.
This commit is contained in:
Ryan Davis 2014-10-31 10:16:11 -04:00
parent e91ee7fe91
commit 86ff5520e4

View File

@ -7,6 +7,9 @@ Windows Service module.
import salt.utils
from subprocess import list2cmdline
import time
import logging
log = logging.getLogger(__name__)
# Define the module's virtual name
__virtualname__ = 'service'
@ -238,6 +241,7 @@ def stop(name):
if not status(name):
return True
log.warning('Giving up on waiting for service `%s` to stop', name)
return False