View Single Post

   
  #4 (permalink)  
Old 05-13-2008, 07:12 PM
Steven Woody
 
Posts: n/a
Default Re: What is equivalent to /etc/rc.sh ?

On May 13, 1:26 pm, Robby Workman <newsgro...@rlworkman.net> wrote:
> On 2008-05-13, Steven Woody <narkewo...@gmail.com> wrote:
>
> > In a redhat based document, it mentioned /etc/rc.sh that does not exit
> > in slack. My question is, which file is equivalent to /etc/rc.sh? I
> > want to put some lines of script into it. Thanks.

>
> What do the lines do?
> As someone else mentioned, /etc/rc.d/rc.local might be the
> right place, or it might be /etc/profile.d/*, or it might be
> something else. More information is needed.
>
> -RW


I doubt these things can be done in rc.local since rc.local will be
executed very later in boot time. What I want to do in /etc/rc.sh is
to prepare stuffs for a tmps, my /var is actually a symbol link
pointing to /tmpfs/var. So, you see, if I do 'mkdir /tmpfs/var' in
rc.local, then any program running before /tmpfs/var and depends on /
var will failed to run, it it?

Thanks.


Reply With Quote