Open dothebart opened 4 years ago
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?
have a look at how we monkey-patch psutil to achieve this: https://github.com/arangodb/release-test-automation/blob/main/release_tester/tools/monkeypatch_psutil.py https://github.com/arangodb/release-test-automation/blob/main/release_tester/arangodb/installers/nsis.py#L26
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 https://github.com/giampaolo/psutil/issues/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)