Who starts kodi on ubuntu?
#1
Not sure this question is good here or if I should ask on ubuntu forum...
I'm trying to write a script taht restarts kodi via cli, so I need to know how to launch it once it stopped.
In my ubuntu 16.04 there are a lot of processes related to kodi:

Code:
fmf@kodi:~$ ps ax|grep kodi
1142 ?        Ss     0:16 avahi-daemon: running [kodi.local]
1638 ?        Ss     0:00 /bin/sh /usr/bin/kodi-standalone
1730 ?        Ss     0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/im-launch kodi-standalone
1733 ?        S      0:00 /usr/bin/dbus-launch --exit-with-session /usr/bin/im-launch kodi-standalone
1747 ?        S      0:00 /bin/sh /usr/bin/kodi --standalone
1749 ?        Sl   200:14 /usr/lib/kodi/kodi.bin --standalone
24195 pts/1    S+     0:00 grep --color=auto kodi
fmf@kodi:~$

Assuming that I managed to stop kodi somehow, how do I start it without rebooting the computer?
Reply
#2
I run kodi as a service, and use systemctl to send start and stop commands to it.

The howto that explains how the service is set up I got from fritsch' excellent post here: http://forum.kodi.tv/showthread.php?tid=231955
Reply
#3
Thanks.
I found that thread and also this page on the wiki: http://kodi.wiki/view/HOW-TO:Autostart_K...emd_script
But I'd like to understand all those processes with kodi in the name, because it looks like I have more than one point where kodi is launched.
I'd like to know why do I have this three processes:
1638 ? Ss 0:00 /bin/sh /usr/bin/kodi-standalone
1747 ? S 0:00 /bin/sh /usr/bin/kodi --standalone
1749 ? Sl 200:14 /usr/lib/kodi/kodi.bin --standalone

It seems to me that I should have only one call to kodi --standalone, am I wrong?
Reply

Logout Mark Read Team Forum Stats Members Help
Who starts kodi on ubuntu?0