Advanced

/etc/rc.local

Posted by Sander_Marechal on · 4 comments
Linux DevCenter; By Juliet Kemp
Mail this story
Print this story

This for the “how the hell have I done this job this long & not known this already?” files. Debian has a file called /etc/rc.local which runs at the end of all the multi-user boot levels, and which you can therefore put stuff in. I’ve had trouble with autofs not starting properly on certain machines (there seems to be a correlation with SCSI or SATA rather than IDE drives, although I do not know why this should be), and putting the line /etc/init.d/autofs restart in /etc/rc.local, whilst arguably a hack, does the trick just fine.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Debian, Linux

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

Comments (4)

[jon@localhost ~]$ ls -la /etc/rc.local lrwxrwxrwx 1 root root 13 Oct 21 2006 /etc/rc.local -> rc.d/rc.local

um, yes, in lots of systems. Its defines system initialization in /etc/inittab or from the inittab depending on how you look at life.

was there a point to the observation?

*edit* oops, sorry, missed the original story. */edit*
hmmm... very likely I do not understand your last statement well enough (was there a point to the observation?)

I am adding additional comment. The original article starts with; This for the “how the hell have I done this job this long & not known this already?” files. Debian has a file called /etc/rc.local which runs at the end of all the multi-user boot levels,

I wanted to educate (enlight) readers of the lxer.com, that Debian is not the only distribution with 'rc.local' (which was implicitly suggested in the article).

That's all. Nothing more, nothing less
caught that, I left my original text and corrected my post with that edit. One of my pet peeves I guess, going back and doing edits to change anything but spelling mistakes. If I'm an idiot I'll leave it for all to see and take it as an object lesson to read closely and only then put my foot in my mouth.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post