Operating System - HP-UX
1826235 Members
2860 Online
109692 Solutions
New Discussion

Re: /sbin/init.d/net stop is not working

 
Hector Vargas
Frequent Advisor

/sbin/init.d/net stop is not working

I have 8 servers and some of the will not response to "/sbin/init.d/net stop", the command will not error out but the network configuration and routing tables will remain active like the command was never run. however /sbin/init.d/net start will refresh the network configuration.
3 REPLIES 3
RAC_1
Honored Contributor

Re: /sbin/init.d/net stop is not working

Any changes to it? Compare it with a system where it is working. Alos, you may want to add -vx to script and check what exactly is happening.
There is no substitute to HARDWORK
Mike Keighley
Frequent Advisor

Re: /sbin/init.d/net stop is not working

This is simply because /sbin/init.d/net stop doesn't actually DO anything !

If you examine the script you will see:
stop)
exit $OKAY
;;

Depending what you are trying to achieve here, you might be able to use a mixture of
# route delete net ...
and
# ifconfig ... down
nil illegitimi root-andum
Hector Vargas
Frequent Advisor

Re: /sbin/init.d/net stop is not working

/sbin/init.d/net is empty.