restarting networking daemons without restarting
About the only thing that does bring down OSX with some frequency is flaky network situations such as using airport on the fringes of a network where you are constantly getting and then losing your DHCP lease. At some point the networking layer gets corrupt or shuts down and you are left with no networking ability at all. A restart fixes this but hey, this is unix!
surely someone has written a little shell script to kill and then restart all of the various daemons that make up the networking layer of OSX. Care to share?
[ 05-06-2002: Message edited by: trystero ]</p>
surely someone has written a little shell script to kill and then restart all of the various daemons that make up the networking layer of OSX. Care to share?
[ 05-06-2002: Message edited by: trystero ]</p>
Comments
Look in:
/System/Library/StartupItems/Network
a quick search on google did turn up this link:
<a href="http://www.osxfaq.com/ReaderReports/Reconfiguring_Network_Services/index.ws" target="_blank">http://www.osxfaq.com/ReaderReports/Reconfiguring_Network_Services/index.ws</a>
unfortuantely the script did not work on my machine - perhaps it was written for X 10.0?
Using username "gary".
gary@hekal's password:
Welcome to Darwin!
[hekalmac:~] gary% ls -l /System/Library/StartupItems/
total 0
drwxr-xr-x 5 root wheel 264 Sep 7 2001 Accounting
drwxr-xr-x 5 root wheel 264 Sep 7 2001 Apache
drwxr-xr-x 5 root wheel 264 Apr 10 22:34 Apache-Andromeda
drwxr-xr-x 5 root wheel 264 Sep 7 2001 AppServices
drwxr-xr-x 5 root wheel 264 Sep 7 2001 AppleShare
drwxr-xr-x 5 root wheel 264 Sep 7 2001 AppleTalk
drwxrwxr-x 4 root admin 264 Mar 24 17:27 AquaMon
drwxr-xr-x 5 root wheel 264 Sep 7 2001 AuthServer
drwxr-xr-x 5 root wheel 264 Sep 7 2001 Cleanup
drwxr-xr-x 5 root wheel 264 Sep 7 2001 ConfigServer
drwxr-xr-x 5 root wheel 264 Nov 7 20:04 CrashReporter
drwxr-xr-x 5 root wheel 264 Sep 7 2001 Cron
drwxr-xr-x 5 root wheel 264 Sep 7 2001 DirectoryServices
drwxr-xr-x 5 root wheel 264 Sep 7 2001 Disks
drwxr-xr-x 5 root wheel 264 Sep 7 2001 IPServices
drwxr-xr-x 5 root wheel 264 Sep 7 2001 NFS
drwxr-xr-x 5 root wheel 126 Sep 7 2001 Network
drwxr-xr-x 5 root wheel 264 Sep 7 2001 NetworkTime
drwxr-xr-x 5 root wheel 264 Sep 7 2001 Portmap
drwxr-xr-x 5 root wheel 264 Apr 1 23:50 SSH
drwxr-xr-x 4 root wheel 264 Mar 24 19:15 Samba
drwxr-xr-x 5 root wheel 264 Jan 15 06:55 SecurityServer
drwxr-xr-x 5 root wheel 264 Sep 7 2001 Sendmail
drwxr-xr-x 5 root wheel 264 Sep 7 2001 SystemLog
drwxr-xr-x 5 root wheel 264 Sep 7 2001 SystemTuning
[hekalmac:~] gary%
[quote]Originally posted by trystero:
<strong>hmmm... system/Library/StartupItems/ does not have a network subdirectory on my standard OSX 10.0.1.5 install
a quick search on google did turn up this link:
<a href="http://www.osxfaq.com/ReaderReports/Reconfiguring_Network_Services/index.ws" target="_blank">http://www.osxfaq.com/ReaderReports/Reconfiguring_Network_Services/index.ws</a>
unfortuantely the script did not work on my machine - perhaps it was written for X 10.0?</strong><hr></blockquote>
[ 05-07-2002: Message edited by: hekal ]</p>