LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-30-2004, 12:12 AM   #1
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
disable ldconfig at boot?


hi,
is it necessary to run ldconfig at boot? i only had to run that a few times while building linux from scratch.
how can i prevent slack from running ldconfig at boot?
thanks.
 
Old 06-30-2004, 12:24 AM   #2
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
man ldconfig

Code:
DESCRIPTION
       ldconfig creates the necessary links and cache to the most
       recent shared libraries found in the directories specified
       on  the  command line, in the file /etc/ld.so.conf, and in
       the trusted directories (/lib and /usr/lib).  The cache is
       used by the run-time linker, ld.so or ld-linux.so.  ldcon_
       fig checks the header and file names of the  libraries  it
       encounters  when  determining  which  versions should have
       their links updated.
Speculate: If you do not run ldconfig at boot time, I would think that the dynamicly link (compiled) program would not run (correctly).


However if you insist to disable it at boot time:

cd /etc/rc.d
emacs rc.M

and comment out

Code:
# Update all the shared library links:
if [ -x /sbin/ldconfig ]; then
  echo "Updating shared library links:  /sbin/ldconfig"
  /sbin/ldconfig
fi
save it (ctrlxs)
exit (ctrlxc)
 
Old 06-30-2004, 02:17 AM   #3
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
hi,
i disable ldconfig at boot by commenting out the lines. so far so good.
thanks.
 
Old 06-30-2004, 02:33 AM   #4
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
You can disable ildconfig at boot, the only thing you will have to remember is to run ldconfig after installing or uninstalling software which provides shared libraries. It isn't always necessary but it doesn't harm running ldconfig when it's not needed.
 
Old 06-30-2004, 04:54 AM   #5
priller
Member
 
Registered: Jan 2004
Distribution: Debian etch
Posts: 202

Rep: Reputation: 30
I disabled ldconfig at boot without a problem, saved about 10 seconds on boot time.
 
Old 06-30-2004, 05:04 AM   #6
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
u can do it via pkgtool, just go through ur setup scripts and disable it there :^)
 
Old 06-30-2004, 09:54 AM   #7
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
Quote:
Originally posted by priller
I disabled ldconfig at boot without a problem, saved about 10 seconds on boot time.
LMAO, are you trying to set a world record on boot time..........

maybe we can make boot time a New Olympic event.........
 
Old 06-30-2004, 02:14 PM   #8
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
hi,
reducing boot time is the only reason i want to disable ldconfig at boot. i also want to disable hotplug at boot, maybe saving another 10 seconds . making /etc/rc.d/rc.hotplug non-executable is not as flexible as passing "nohotplug" to kernel, but for some reason, the "nohotplug" way fails and i still don't know how to fix it. see if you can help me here: http://www.linuxquestions.org/questi...readid=199149.
thanks.
 
Old 07-01-2004, 03:47 AM   #9
priller
Member
 
Registered: Jan 2004
Distribution: Debian etch
Posts: 202

Rep: Reputation: 30
Quote:
Originally posted by 320mb
LMAO, are you trying to set a world record on boot time..........

maybe we can make boot time a New Olympic event.........
I'm just fed up of waiting 1 minute for the computer to boot.
 
Old 07-01-2004, 05:19 AM   #10
snop
Member
 
Registered: Aug 2003
Location: Bcn
Distribution: Slackware
Posts: 93

Rep: Reputation: 15
I posted about speeding up boot some time ago: http://www.linuxquestions.org/questi...ight=boot+snop

I indeed disabled hotplug as well as ldconfig but I put ldconfig at rc.0. This way the shutdown processes is slower but I don't care because I just leave my computer alone to do this job

It makes a huge difference disabling ldconfig + hotplug at boot up (and I still don't get what exactly hotplug does, my usb mass storage are detected without hotplug).

There's no need to set any "olympic record" but saving 15-20 secs. it's important if you use your computer as a desktop one.

Bye

SnOp

PD: my computer boots on about 40 secs until reaching xfce .
 
Old 07-01-2004, 09:46 AM   #11
coffeedrinker
Member
 
Registered: Sep 2003
Posts: 173

Rep: Reputation: 30
I also have disabled ldconfig at boot - doesn't produce problems and I run it after I install new software.

While you're at it you may want to disable fc-cache as well, since you probably aren't adding a lot of fonts every day.

Why save time on the boot? I use Slackware on my laptop and am turning it on and off and moving around with it frequently. So each boot is worth saving some time on.
 
Old 07-01-2004, 01:25 PM   #12
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by coffeedrinker
While you're at it you may want to disable fc-cache as well, since you probably aren't adding a lot of fonts every day.
i was gonna get to that, too. i haven't because fc-cache doesn't take as long as it used to (total boot time now is about 15 seconds with fc-cache). but in case it starts to slow again, how do i disable it?

Quote:
Why save time on the boot? I use Slackware on my laptop and am turning it on and off and moving around with it frequently. So each boot is worth saving some time on.
yeah. and i'm waiting for kexec to stablize to give it a try. it's supposed to make it possible to skip reboot altogether.
thanks.
 
Old 07-01-2004, 02:15 PM   #13
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
u people amaze me, i gave u the correct option, instead of chmodding files and screwing around just run

Code:
pkgtool
as root

then choose the option to go through ur setup scripts, and u can choose to disable all those things at bootime lol

get it?
 
Old 07-01-2004, 02:50 PM   #14
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by equinox
u people amaze me, i gave u the correct option, instead of chmodding files and screwing around just run

Code:
pkgtool
i guess that's a more obvious way to do it, but that doesn't mean the other ways are wrong. in fact, i left mdk for slk because i wanted to force myself to skip the gui's and learn what really happens, at least once.
 
Old 07-01-2004, 08:48 PM   #15
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
Quote:
i guess that's a more obvious way to do it, but that doesn't mean the other ways are wrong. in fact, i left mdk for slk because i wanted to force myself to skip the gui's and learn what really happens, at least once.
gentoo?
 
  


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
how to disable appletalk at boot chemdawg Debian 1 10-10-2005 04:21 PM
Drake 10.0: how to disable eth1 on boot buehler Linux - Newbie 1 06-15-2004 12:21 PM
ldconfig running on boot priller Linux - General 1 06-07-2004 06:23 AM
How to disable gpm at kernel boot iotc247 Slackware 1 05-03-2004 07:46 PM
Disable floppy detection on boot? magicvash Mandriva 0 11-18-2003 12:34 AM


All times are GMT -5. The time now is 02:26 PM.

Main Menu
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