Skip to content

#10951: GarmTools. Проверка имени запущенного сервиса

проверка path

скрипт для проверки:

from garm_tools.modules.daemonizer import Daemons, Instances

if __name__ == '__main__':
    instance = Instances.first(name='mt')
    daemons_query = Daemons.all(instance=instance)

    daemon_states = []
    for daemon in daemons_query:
        daemon_states.append({daemon.name: daemon.daemon_state(instance=instance)})

    print(daemon_states)
Edited by Mikhail Tareykin

Merge request reports