Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Where to hook in kodi prestart scripts?
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Where to hook in kodi prestart scripts?
4th Aug, 2015, 07:52 PM
Post: #1
Otaku Wally Offline
Registered
Posts: 18
Joined: Mar 2015
Reputation: 0
Question Where to hook in kodi prestart scripts?
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
Visit this user's website Find all posts by this user
Quote this message in a reply
5th Aug, 2015, 01:06 AM (This post was last modified: 5th Aug, 2015 01:21 AM by deHakkelaar.)
Post: #2
deHakkelaar Offline
Administrator
******
Posts: 360
Joined: Dec 2012
Reputation: 23
RE: Where to hook in kodi prestart scripts?
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

There are only 10 types of people in the world: those who understand binary, and those who don't
Find all posts by this user
Quote this message in a reply
5th Aug, 2015, 04:37 PM
Post: #3
Otaku Wally Offline
Registered
Posts: 18
Joined: Mar 2015
Reputation: 0
RE: Where to hook in kodi prestart scripts?
Thanks man! I will take a look...
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 26th May, 2025, 09:16 AM Powered By MyBB, © 2002-2025 MyBB Group.