On 22-Dec-2000 Andrew George wrote:
> On Fri, 22 Dec 2000 13:57, A V Flinsch wrote:
>> On Thursday 21 December 2000 21:17, b5dave wrote:
>> > So the burning question is: Does anybody have the hdparm command in
>> > their rc scripts or elsewhere???
>>
>> I have the following at the end of rc.local
>>
>> # hdparm stuff
>> echo -n "Harddrive optimizations"
>> /sbin/hdparm -c 1 -d 1 -k 1 /dev/hda
>> /sbin/hdparm -c 1 -d 1 -k 1 /dev/hdb
>> /sbin/hdparm -c 1 -k 1 /dev/hde
> 
> Oddly enough I discovered that even though I had a hdparm line in rc2.d,
> rc3.d and rc4.d...I had to add the line to rc.local to get it to work

Indeed!
Hmmm.  What service scripts in rc2,3,4? Runlevels 0,1,2,and 6 mean
your machine is on its way down or just plain down. Runlevel 4 isn't
really used. The only two runlevels of interest are 3 (which boots you
into a console), and runlevel 5 which boots into the xdm graphical logon
screen. In other words, rc2 and rc4 don't count. If your setup was booting
into a graphical logon then you were booting into rc5, and your hdparm
entry in rc2, 3, or 4 would never work. Note that the runlevels are *not*
sequencial; booting into rc.5 (runlevel 5 == graphical logon) will kill
all prior stuff and just start the rc.5 stuff. The files in those rc.*
directories either start with an S or a K. The K means kill and the S means
start. OOF, that was a mouthfull.

But, again, I'm now really curious to know what scripts Mandrake was
screwing with in rc.2, rc.3, and rc.4. WTF was Mandrake doing here?

Dave.

---------
22-Dec-2000
02:34:07
---------

Reply via email to