v15 multiple kodi instances open
#1
My Kodi setup is a box running Ubuntu + Kodi and I'm also using a Flirc adapter to remote control the HTPC.

I have a button that runs a script that opens kodi (i also have another button that mimics alt+f4 if i need to close kodi).

My question -- not sure why but every now and then (i think is has something to do with plexbmc addon but not sure). I end up having like 5-20 instances of kodi running (top command from terminal will show many "kodi.bin" processes). I alt+f4 out of them all till i am back at the desktop and then open kodi again.

Is there anyway that i can tell ubuntu to only allow one "kodi.bin" process to run at a timeHuh?

running Gotham 15.2 on ubuntu 14.10

Thanks!!!!
Reply
#2
Can't you put something like this at the start of your script
PHP Code:
ps cax grep 'kodi.bin' > /dev/null
if [ $? -eq 0 ]; then
exit 0
fi
#rest of script 

If kodi is already running then the script will just exit.
Learning Linux the hard way !!
Reply

Logout Mark Read Team Forum Stats Members Help
multiple kodi instances open0