service utility with Ubuntu 10.04 does not work properly when used to restart network

Tom H tomh0665 at gmail.com
Mon Mar 14 11:38:40 UTC 2011


On Mon, Mar 14, 2011 at 6:13 AM, Tapas Mishra <mightydreams at gmail.com> wrote:



> I am not very clear with what is active on my system.
>
> On Red Hat based systems I used to do service networking restart and
> hence I did the same here also.

No. On an RH box, if NM's managing your interface(s), "service network
restart" (not "service networking restart") doesn't restart the
network.

I'm assuming, of course, that the box is set up properly, meaning that
"chkconfig --list NetworkManager" returns "0:off 1:off 2:on 3:on 4:on
5:on 6:off" and "chkconfig --list network" returns "0:off 1:off 2:off
3:off 4:off 5:off 6:off"...



>> If you're using "/etc/network/interfaces" and want to restart the
>> network service, use "/etc/init/networking.conf".
>
> How do I determine which one is in use.

status networking
status network-manager
(status is short for "initctl status")
or
service networking status
service network-manager status

Once you determine which one's active (whichever applies):
restart networking/restart network-manager
(restart is short for "initctl restart")
or
service networking restart/service network-manager restart




More information about the ubuntu-users mailing list