Forum
Where to hook in kodi prestart scripts? - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: Where to hook in kodi prestart scripts? (/thread-3070.html)



Where to hook in kodi prestart scripts? - Otaku Wally - 4th Aug, 2015 07:52 PM

Hi,

I have been trying to start some scripts, mainly for configuration of logfile location right now (but this will be expanded), BEFORE XBMC/Kodi starts up, without success until now. Apparently the /usr/local/bin/kodistart script is NOT being used for that, so therefore my question: HOW and WHERE can I customize things (like for example a link to the kodi.log on /tmp/) right now? How exactly does the start of the kodi service (there is no script in /etc/init.d) work? Huh

Thanks in advance


RE: Where to hook in kodi prestart scripts? - deHakkelaar - 5th Aug, 2015 01:06 AM

Kodi is being started by "upstart":
http://upstart.ubuntu.com/cookbook/#job
Have a look in the "/etc/init" folder.
I believe "xbmc-preload.conf" is the first kodi bit that starts.
But you can still use old school "init.d" scripts or put stuff in "/etc/rc.local" if you like.

EDIT: to symlink the kodi logs in the /tmp folder:
Terminal
ln -s /home/xbian/.kodi/temp/kodi.log /tmp/kodi.log



RE: Where to hook in kodi prestart scripts? - Otaku Wally - 5th Aug, 2015 04:37 PM

Thanks man! I will take a look...