2016-09-08, 17:27
I have two devices, host and client, but running kodi. The host is a linux box running Ubuntu 16.4 with a upnp shared libary and the client is an iPad. Normally everything works perfectly, and I applaud the Kodi development team for how easy this is to setup.
However, whenever my network connection on the linux box disconnects and reconnects the upnp service stops responding to client requests. On the client device I get the message "Couldn't connect to network server". My solution has been to restart kodi manually whenever this happens. I would like to automate this.
My plan is to write a script for the /etc/network/if-up.d/ folder and have it kill any running kodi processes and then start kodi again.
When I try to kill the kodi process, the thing survives all attempts to kill it from the command line. killall kodi, killall kodi.bin, nothing seems to actually close the window that is open. I've run kill -9 pid, same effect. Clicking around the window still works as if I didn't kill anything. And ps -ef | grep kodi shows the same process I just tried to kill with the same pid.
I'm on Ubuntu 16.4, X86_64, running Kodi 15.2 Git: (unknown) (Compiled: 15.2+dfsg1-3ubuntu1
Startup log file is here: http://paste.ubuntu.com/23150367/
If someone knows why I can't kill Kodi from the command line, I'd really appreciate some assistance. Thanks!
However, whenever my network connection on the linux box disconnects and reconnects the upnp service stops responding to client requests. On the client device I get the message "Couldn't connect to network server". My solution has been to restart kodi manually whenever this happens. I would like to automate this.
My plan is to write a script for the /etc/network/if-up.d/ folder and have it kill any running kodi processes and then start kodi again.
When I try to kill the kodi process, the thing survives all attempts to kill it from the command line. killall kodi, killall kodi.bin, nothing seems to actually close the window that is open. I've run kill -9 pid, same effect. Clicking around the window still works as if I didn't kill anything. And ps -ef | grep kodi shows the same process I just tried to kill with the same pid.
I'm on Ubuntu 16.4, X86_64, running Kodi 15.2 Git: (unknown) (Compiled: 15.2+dfsg1-3ubuntu1
Startup log file is here: http://paste.ubuntu.com/23150367/
If someone knows why I can't kill Kodi from the command line, I'd really appreciate some assistance. Thanks!