Re: [SLUG] ifconfig not gettting set

From: Eben King (eben1@tampabay.rr.com)
Date: Sun May 08 2005 - 18:14:15 EDT


On Sun, 8 May 2005, Chuck Hast wrote:

> On 5/8/05, Eben King <eben1@tampabay.rr.com> wrote:
> > On Sun, 8 May 2005, Chuck Hast wrote:
> >
> > > I can do a "/etc/init.d/networking restart" manually and it will restart the
> > > network just fine (it was already running just eth0 was hosed).
> > > I was thinking about how to get the simlink to call networking restart as it
> > > just looks like it is pointing to the file, I guess there must be some way to
> > > pass a command to it in order to do a restart...
> >
> > "service networking restart"? Or maybe "ifdown eth0 && ifup eth0"?
>
> 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
>
> I need it to be networking restart. Will the ln command allow you to create a
> symlink to a file and add a argument?

I don't think so. But if you include both the K??networking and
S??networking scripts, the K one will get run first, so that may do what you
want. May, anyhow.

Or, copy an existing script and modify it to do what you want.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
Are you confident that you appear to be professional in your electronic
communication?  Consider this: A: No
                               Q: Can I top post? from nick@xx.co.uk

----------------------------------------------------------------------- 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:08 EDT