View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Oct 09, 2012 8:56 pm 
Offline
Joined: Sun Nov 13, 2005 5:56 pm
Posts: 104
One of the problems I have had since the switch from knoppmyth to linhes is where to put boot options. It is one of the reasons I tried mythbuntu for a year and a half. I'm back to LinHES but it's time to get the answer.

LinHES is different from regular arch linux boot. rc.conf is ignored so I can't add anything to the daemon list in the script. rc.multi, and therefore rc.local, seem to also be ignored. I have added things to /etc/runit/1.local but that executes earlier than I like. Adding things to sv seems like overkill plus some things I don't want sv to monitor. What do I do? rc.local would be perfect if it executed.

s


Top
 Profile  
 
PostPosted: Wed Oct 10, 2012 5:06 am 
Offline
Joined: Wed Jan 07, 2004 12:14 pm
Posts: 425
Location: Charlotte, NC
Put your startup commands in /runit/1.local

_________________
Backend server - 4.0 TB 3.0ghz dual core 6 gig RAM, nVidia 9400, Gigabyte GA-870A-UD3 MB, 2 HD-5500, 2 HD Homerun dual tuners, 3 frontend machines - LinHES 8.6.1


Top
 Profile  
 
PostPosted: Wed Oct 10, 2012 7:01 am 
Offline
Joined: Sun Nov 13, 2005 5:56 pm
Posts: 104
sparks wrote:
I have added things to /etc/runit/1.local but that executes earlier than I like.


1.local executes before the runit daemons. I would like something at the end of booting.

s


Top
 Profile  
 
PostPosted: Wed Oct 10, 2012 7:22 am 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
In this case adding it to runit as a service is the only option.
If you only want something to run once, take a look at the runit unit for alsa-utils.


Top
 Profile  
 
PostPosted: Wed Oct 10, 2012 9:51 am 
Offline
Joined: Sun Nov 13, 2005 5:56 pm
Posts: 104
I kind of like that. But (programmers are a stubborn bunch, aren't we? :wink: ) I took the rc.local code from rc.multi

Code:
if [[ -x /etc/rc.local ]]; then
   /etc/rc.local
fi


and added it to the bottom of rc.sysinit. It works. The downside, of course, is that if the rc.sysinit gets updated, it breaks my mod until I re-edit rc.sysinit. I probably will try the runsv mod later. Thanks for the tip. I always wondered how those daemon scripts in /etc/rc.d got executed. LinHES is the only box in the house that uses the runsv system so I have never gotten very familiar with it.

s


Top
 Profile  
 
PostPosted: Wed Oct 10, 2012 10:04 am 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
Well if it works for you thats what matters.

For reference with your mod, rc.local will be called before 1.local.
Take a look at /etc/runit/1 for verification.


Top
 Profile  
 
PostPosted: Thu Oct 11, 2012 4:02 pm 
Offline
Joined: Sun Nov 13, 2005 5:56 pm
Posts: 104
The daemons I wanted to run are now using runsv as you suggested. I tried doing it before but didn't get good results. Using the example you cited, it works like a charm. The basic command I need to run is a mount command. My external USB drive was not mounting consistently at boot. I made it noauto in fstab and then precede the mount command rc.local with a sleep to get the delay I want. rc.local runs as a fork (using &) so it doen't hang the boot process. Yeah, one stupid hack leads to another. :roll:

I decided that it was too much so I moved the mount to 1.local to make the change more robust and easier. Time will tell if this works but it's been much joy so far.

Thanks for the help. runsv makes my head spin.


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 12 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