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

starting a program in xbmc-preload.conf
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
starting a program in xbmc-preload.conf
10th Aug, 2013, 10:08 PM
Post: #1
markosjal Offline
Registered
Posts: 20
Joined: Mar 2013
Reputation: 1
starting a program in xbmc-preload.conf
I have been battling with atvclient autostarting so I thiought i could load it in xbmc-preload.conf, especially since I only need it when xbmc is running.

How do I add a program to xbmc-preload.conf?
Find all posts by this user
Quote this message in a reply
10th Aug, 2013, 10:27 PM
Post: #2
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
RE: starting a program in xbmc-preload.conf
(10th Aug, 2013 10:08 PM)markosjal Wrote:  I have been battling with atvclient autostarting so I thiought i could load it in xbmc-preload.conf, especially since I only need it when xbmc is running.

How do I add a program to xbmc-preload.conf?

you can create its own upstart job that start atvclient when xbmc start.
for exemple, i've done a service and mk01 do a init file
https://github.com/mk01/xbian-package-upstart-xbmc-bridge/blob/master/content/etc/init/xbian-xbmc-bridge.conf

looks specially the start on, stop on command.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
13th Aug, 2013, 03:37 AM
Post: #3
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: starting a program in xbmc-preload.conf
(10th Aug, 2013 10:08 PM)markosjal Wrote:  I have been battling with atvclient autostarting so I thiought i could load it in xbmc-preload.conf, especially since I only need it when xbmc is running.

How do I add a program to xbmc-preload.conf?

xbmc-preload is waiting for defined processes to start up. but will not start them alone - it is meant for services which does have their startup scripts, but are taking longer to start or are originally started much later in run levels.

so as Belese is telling you, use upstart conf file. it's easy, the simplest would be:
Code:
start on starting xbmc
stop on stopped xbmc

exec atvclient

and save it under /etc/init/avclient.conf. starting xbmc / stopped xbmc is for case avclient does not need xbmc started for it's function. it will be started before xbmc will start.

if it would be dependent, then change starting xbmc to started xbmc.

mk

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
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: 10th May, 2025, 10:53 AM Powered By MyBB, © 2002-2025 MyBB Group.