You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since at least on windows 10 I've seen that it at least doesn't block as rigerous as described in the comment and in #795 .
after invoking stop() I've seen stop_pending in a loop waiting for the service to be stopped, and after start() I've seen start_pending.
I've verified that using ArangoDB which takes a while to start/stop, so these states can be observed:
service = psutil.win_service_get('ArangoDB')
print(service.status())
if service.status() == 'running':
print("arangod running - first check with arangosh: ")
service.stop()
while service.status() != "stopped":
print(service.status())
time.sleep(1)
service.start()
while service.status() != "running":
print(service.status())
time.sleep(1)
(ps: psutils currently seem to be the only python 3 working solution to manipulate services)
The text was updated successfully, but these errors were encountered:
I am working on a project where i need to check multiple services staus all together…
I can add using list but I don’t know if it will work can anyone help me with that?
I'd like to suggest to enable these commended out code paths:
https://github.com/giampaolo/psutil/blob/master/psutil/_pswindows.py#L603
since at least on windows 10 I've seen that it at least doesn't block as rigerous as described in the comment and in #795 .
after invoking
stop()
I've seenstop_pending
in a loop waiting for the service to be stopped, and afterstart()
I've seenstart_pending
.I've verified that using ArangoDB which takes a while to start/stop, so these states can be observed:
(ps: psutils currently seem to be the only python 3 working solution to manipulate services)
The text was updated successfully, but these errors were encountered: