mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
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:
parent
e91ee7fe91
commit
86ff5520e4
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user