How do I know if a python service is running?

but quick code for example status = os. system(‘systemctl is-active –quiet service-name’) print(status) # will return 0 for active else inactive.

Sizin İçin Seçtik  Lazio Fan token kaç TL?

Leave a Reply

Your email address will not be published. Required fields are marked *