Thread: rc.local?
View Single Post

   
  #2 (permalink)  
Old 01-19-2008, 07:11 AM
Bill Marcum
 
Posts: n/a
Default Re: rc.local?

On Thu, 29 Sep 2005 17:27:03 -0700, Captain Dondo
<yan@NsOeSiPnAeMr.com> wrote:
> Where do I put rc.local to make it run automagically? Or is there some
> other script that I should put my local stuff into?
>

Put it in /etc/init.d, and make symbolic links in the /etc/rc?.d
directories, either by hand or using update-rc.d. Your script should
accept the arguments "start", "stop" or "restart"; you can copy
/etc/init.d/skeleton and add your own commands to it. Or you could make
a crontab entry starting with "@reboot" (see "man 5 crontab").


--
: How would you disambiguate these situations?
By shooting the person who did the latter.
-- Larry Wall in <199710290235.SAA02444@wall.org>
Reply With Quote