View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Jun 18, 2006 3:48 pm 
Offline
Joined: Mon Jun 12, 2006 8:34 am
Posts: 11
Hi,

I've got my MythTV box running, thx a lot to this forum and the knoppmyth wiki. I'll post a report in one of the tier sections soon.

I still have a question though. I'm not planning to run the box 24/7 so a daily cron job or mythtv setting to run mythfilldatabase daily will not do. I would like to have mythfilldatabase to run every time I turn on the machine.

My Linux knowledge is too limited to know how to do this. Since I suppose I need some control over the order what is run when at boottime. The MySQL db should of course have been started already, but I have no idea how to tell linux to run mythfilldatabase after mysql started (and maybe some other stuff) and before the backend (?) and frontend.

Thx for any help!!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 5:10 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
You can probably just put the appropriate command in /etc/init.d/bootmisc.sh I think that is run after the DB is started.

BTW - Since bootmisc.sh is run as root and mythfilldatabase should be run as the mythtv user you'll need to prefix the command with "su - mythtv".


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 5:31 pm 
Offline
Joined: Mon Jun 12, 2006 8:34 am
Posts: 11
thx for the quick reply, I'll try that!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 5:49 pm 
Offline
Joined: Wed Apr 28, 2004 10:42 pm
Posts: 405
Location: Bendigo, Victoria, Australia
On my system putting the command at the end of bootmisc.sh didn't work, I assume because it was too early.
What I did instead was create a script in /mythtv/mybootstuff.sh with the following commands.
Code:
sleep 60
su mythtv -c "mythfilldatabase --quiet"


At the end of bootmisc I put the command:
Code:
/mythtv/mybootstuff.sh&
(the "&" sends the process into the background so that it wont hold anything else up.)

Now it works fine and gets fresh data whenever it starts up.

_________________
Paul Turpie
-------------
<--Is your location in your profile? Why not?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 21, 2006 7:26 am 
Offline
Joined: Mon Jun 12, 2006 8:34 am
Posts: 11
works great!! thx a lot!!!


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu