LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices



Reply
 
Search this Thread
Old 06-02-2006, 03:54 AM   #1
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: slackware, centos, scientificlinux
Posts: 119

Rep: Reputation: 24
backgrounding hotplug & ldconfig during boot


total noob just installed slack 10.2 on pc (freqently shutdown). Notices that booting takes quite some time, mainly due to hotplug start and ldconfig. Wonders if it's a good idea to background these two by adding & in rc scripts. Or do they _need_ to be finished before the boot proces can move on?
 
Old 06-02-2006, 05:18 AM   #2
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 759

Rep: Reputation: 65
It's perfectly fine to start ldconfig after boot. I have commented the ldconfig lines in /etc/rc.d/rc.M, and added the following in /etc/rc.d/rc.local
Code:
# Start ldconfig in the background 5 minutes after boot
/usr/bin/echo "ldconfig" | /usr/bin/at now +5minutes 2> /dev/null 1> /dev/null
echo "at: /sbin/ldconfig will be started after 5 minutes..."
I don't think it is a good idea to do the same with hotplug, but maybe others can comment on that.

Cheers, Leon.
 
Old 06-02-2006, 02:28 PM   #3
theoffset
Member
 
Registered: Aug 2005
Location: Guadalajara, Jal, Mexico
Distribution: Slackware Linux
Posts: 211

Rep: Reputation: 30
Well, If you are willing to the danger, you can try and see what happens when hotplug is run in the background not sure if that's going to be pleasant, though

I think there are some other things which IMO are more likely to run correctly in the background, like: loading the hwclock (in rc.S line 185 and 187, but I'm not sure of this one), loading custom sysctl config (rc.S, line 206), cleaning temporary files (rc.S, lines 253-255), setup the motd (rc.S, line 289), initialize /dev/urandom (rc.S, lines 304-314), maybe some things in the SysV init script could be parallelized, setting terminal powersave (rc.M, line 19), saving the contents of dmesg (rc.M, 31), removal of stale locks (rc.M, lines 78-83).

Also, maybe some other things, like running the rc.alsa script, could also be done correctly in the background, but if you run anything else which (for example) depends on alsa running, you'd have to make sure that the dependency has finished starting... that's mainly the reason why I wouldn't rely on having hotplug run in the background.

Last edited by theoffset; 06-02-2006 at 02:29 PM.
 
Old 06-04-2006, 09:04 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
Also, you could have (read as Will Have) problems starting X if you background hotplug.

If it is taking an exorbinate amount of time to load hotplug, look at dmesg to see what is 'locking' it up, and blacklist that hardware.
 
Old 06-06-2006, 02:59 AM   #5
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: slackware, centos, scientificlinux
Posts: 119

Original Poster
Rep: Reputation: 24
thanks guys!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ldconfig is slow at boot LocoMojo Slackware 9 03-16-2006 10:26 AM
Slackware 10.2 - /sbin/ldconfig - How to disable at boot time? intox Slackware 12 01-22-2006 11:53 AM
disable ldconfig at boot? rgiggs Slackware 23 07-04-2004 05:45 PM
hotplug & mandrake 9.1? obiwanshinobi Linux - Newbie 10 06-11-2004 05:38 PM
ldconfig running on boot priller Linux - General 1 06-07-2004 07:23 AM


All times are GMT -5. The time now is 02:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration