[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] How do you restart the network on Ubuntu
- Subject: [ale] How do you restart the network on Ubuntu
- From: jim.kinney at gmail.com (Jim Kinney)
- Date: Tue, 30 Aug 2011 17:01:16 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]> <20110830145837.GF2940@auriga-lin> <[email protected]>
On Tue, Aug 30, 2011 at 3:36 PM, Damon L. Chesser <damon at damtek.com> wrote:
> On Tue, 2011-08-30 at 10:58 -0400, Andrew Sledge wrote:
> > The Ubuntu package sysvinit-utils provides the service command to
> > control services.
> >
> > $ sudo service network-interface restart INTERFACE=eth0
>
> How are we to know the mapping from /etc/init.d/networking -> service
> network-interface restart INTERFACE=eth0?
>
> is there a "use this command for that command" doc lying around
> somewhere?
>
> I have from time to time tried "service networking restart" to only have
> "no such command found" returned.
>
That's likely a $PATH issue as /sbin/service is not in a normal user path or
a su path but is in su - path. Ditto for sudo as it doesn't monkey with
$PATH by default.
>
>
> >
> > * ale-request at ale.org <ale-request at ale.org>:
> > > Date: Tue, 30 Aug 2011 09:15:06 -0400
> > > From: David Lemcoe <forum at lemcoe.com>
> > > Subject: Re: [ale] How do you restart the network on Ubuntu
> > > To: Atlanta Linux Enthusiasts <ale at ale.org>
> > > Message-ID:
> > > <CAHGYUtizXH81vMi7_xDFugW7HL6wC9ckD5mvS6zRU=
> VpgDUgRA at mail.gmail.com>
> > > Content-Type: text/plain; charset="iso-8859-1"
> > >
> > > If you're looking to restart an interface, I know "ifdown <interface>"
> > > followed by "ifup <interface>" will do that.
> > >
> > > However I think it's "sudo /etc/init.d/networking restart" to restart
> the
> > > whole thing.
> > >
> > > Hope this helps,
> > >
> > > David
> > >
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://mail.ale.org/mailman/listinfo/ale
> > See JOBS, ANNOUNCE and SCHOOLS lists at
> > http://mail.ale.org/mailman/listinfo
>
> --
> Damon
> damon at damtek.com
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
--
--
James P. Kinney III
As long as the general population is passive, apathetic, diverted to
consumerism or hatred of the vulnerable, then the powerful can do as they
please, and those who survive will be left to contemplate the outcome.
- *2011 Noam Chomsky
http://heretothereideas.blogspot.com/
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20110830/839afddb/attachment.html