Re: Where's /etc/rc.d/rc.local???
On Tue, 2003-01-07 at 20:16, Eric Hanchrow wrote:
> >>>>> "Elijah" == Elijah <desiderata@softhome.net> writes:
>
> Elijah> Hi! I've been having problems with my second drive (hdd)
> Elijah> since everytime I browse through it pauses on occasion and
> Elijah> gives some I/O errors. I somehow solved it with hdparm:
> Elijah> hdparm -c 1 /dev/hdd hdparm -d 1 /dev/hdd hdparm -k 1
> Elijah> /dev/hdd
>
> Elijah> I'm quite sure the -k option will keep these settings for
> Elijah> my hdd but after reboot, it did'nt. So it made me look
> Elijah> for rc.local to put these commands to, but I just can't
> Elijah> find it(?). I put them commands to /etc/rc.boot/ and made
> Elijah> a script there with the commands. Everything seems to go
> Elijah> well. But to make sure ... am what I doing alright? is
> Elijah> this the proper way to setup my hdd?
>
> Elijah> Elijah
>
>
> >From /usr/share/doc/debian/FAQ/debian-faq.txt.gz
>
> 10.6. It looks as if Debian does not use `rc.local' to customize the boot
> process; what facilities are provided?
> ----------------------------------------------------------------------------
>
> Suppose a system needs to execute script `foo' on start-up, or on
> entry to a particular (System V) runlevel. Then the system
> administrator should:
>
> * Enter the script `foo' into the directory `/etc/init.d/'.
>
> * Run the Debian command `update-rc.d' with appropriate arguments,
> to set up links between the (command-line-specified) directories
> rc?.d and `/etc/init.d/foo'. Here, '?' is a number from 0
> through 6 and corresponds to each of the System V runlevels.
>
> * Reboot the system.
>
> The command `update-rc.d' will set up links between files in the
> directories rc?.d and the script in `/etc/init.d/'. Each link will
> begin with a 'S' or a 'K', followed by a number, followed by the name
> of the script. Scripts beginning with 'S' in `/etc/rcN.d/' are
> executed when runlevel `N' is entered. Scripts beginning with a 'K'
> are executed when leaving runlevel `N'.
>
> One might, for example, cause the script `foo' to execute at boot-up,
> by putting it in `/etc/init.d/' and installing the links with
> `update-rc.d foo defaults 19'. The argument 'defaults' refers to the
> default runlevels, which are 2 through 5. The argument '19' ensures
> that `foo' is called before any scripts containing numbers 20 or
> larger.
>
>
>
> --
> PGP Fingerprint: 3E7B A3F3 96CA 8958 ACC5 C8BD 6337 0041 C01C 5276
hmmm, I'm not aware of that. I must be doing it wrong then, thanks for
correcting this Eric :)
Debian is very different from the other distros I've tried, gotta get
used to it ... :)
Cheers,
Elijah
Reply to: