Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84833

Detecting if a Python service is running?

$
0
0
Hi,

Basically, I have a service script that I need to detect if it's running or not.
Therefore, I need something I can set - which is always reset when XBMC starts.

Was thinking of using:
xbmc.executebuiltin("Skin.SetBool(script_running)")
inside the service.

Then, in my other script checking if this was set.
But, result = xbmc.executebuiltin('Skin.HasSetting(script_running)') always returns None

The service will also be shutdown unexpectedly, so it doesn't know when it closes.

Thanks,

Matt

Viewing all articles
Browse latest Browse all 84833

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>