Is it possible to start a service from an addon?
#1
My addon is a service and an addon, so there is a default.py and service.py. The default.py could do with a way to start the service.py if it isnt running.

Using RunScript(addonid) doesnt work as the default.py gets launched. Also, RunScript(service.py) results in an access error.

Anyone know of a workaround?

Thanks,
Reply
#2
How about setting your service to run all the time but only do something when a certain skin setting is set to true, you could then toggle that setting from your addon.

Similar principle to what's suggested here.

Just an idea.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#3
Thanks el_P, that's what it is set to do already, but the situation I am looking to cover is when the service is disabled (due to a script error or the user stops it) and then someone runs the Addon.

It would also help with testing, as restarting XBMC or manually restarting the script is a bit of a pain when have to do it 100 times an hour.
Reply

Logout Mark Read Team Forum Stats Members Help
Is it possible to start a service from an addon?0