1833758 Members
2690 Online
110063 Solutions
New Discussion

networking

 
Roberto Volsa
Frequent Advisor

networking

Why after net stop the net doesn't stop
5 REPLIES 5
Muthukumar_5
Honored Contributor

Re: networking

please explain your question more.

Are you asking like,

after executing /sbin/init.d/net stop,
access to that terminal is stopped?

hth.
Easy to suggest when don't know about the problem!
Giacomo TOTTI
Advisor

Re: networking

Roberto,
if you mean the "net" script under /sbin/init.d directory, you must understand that it simply reads the /etc/rc.config.d/netconf file, so if you type :

./net stop

it simply doesn't read the netconf file, if you use

./net start

it reads the netconf file.

If you want to stop the network deamon, you have to kill the inetd PID, searching for it whith the ps command:

ps -ef|grep inet

bye

Giacomo
Ralph Grothe
Honored Contributor

Re: networking

I haven't been aware of this,
so I looked in the net sccript.
Giaccomo is right.
There's a simple exit $OKAY in the stop match.

So you either have to run your own script,
or manually issue

ifconfig 0.0.0.0
ifconfig down

Of course this will cut your connection if it has been going over this PPA.
Madness, thy name is system administration
Jino.P.V
Frequent Advisor

Re: networking

Hi Roberto,

if you want to restart the network daemon you can give inetd -c. It will reconfigure the network. Means it will read /etc/inetd.conf.

If you want to kill the n/w deamon give inetd -k.

it will kill the network daemon.

If you want to start it again just give /usr/sbin/inetd

hope it will help,

Regards,

Jino
Venkatesan_5
Frequent Advisor

Re: networking

hi,

If you speaking about /sbin/init.d/net --- file , then it will not stop or start...


It is a file which is used to configure lan interface(s) at initialization time.



regds

Venkatesan.