Re: [SLUG] ifconfig not gettting set

From: Kwan Lowe (kwan@digitalhermit.com)
Date: Sun May 08 2005 - 18:25:28 EDT


Chuck Hast wrote:

> Doing it manually it is just fine, but I am trying to figure out how the symlink
> would call networking restart? it is linking to a file, but I do not see how to
> cause the link to issue the command. Perhaps i am being dense here...
>
> Here is what the entry from rcS.d for networking looks like
> lrwxrwxrwx 1 root root 20 Aug 30 2004 S40networking->../init.d/networking

To clarify, the symlink itself is not causing the start/stop. It's the
rc program passing the "start" or perhaps "restart" parameter. Take a
look at the "networking" script -- or post it here -- to dissect what's
occurring.

> I need it to be networking restart. Will the ln command allow you to create a
> symlink to a file and add a argument?

BTW, some distros have an rc.local file that executes after everything
else. You can add the line "service networking restart" or
"/etc/rc.d/init.d/networking restart" to the end of rc.local to have it
done automatically. I generally dislike putting networking commands in
rc.local, but it's a quick way to get this done.

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:47:21 EDT