View Full Version : Restart network services without rebooting
Novajo
01-25-2002, 11:15 AM
To make along story short, sometimes nibindd, pppd and others all crash on me. Netinfo will give me an error saying it can't find nibindd and Internet Connect just hangs. It often happens when I physically disconnect my DSL connection to plug in my ethernet cross-over cable.
I don't really want to know why it happens, but I want to be able to "restart" the network services without rebooting. I tried various things (there is a Kicker/ directory with various restart scripts, but they don't do the job) I tried Restart Netinfo (does not work either). Anybody has an idea ?
mervTormel
01-25-2002, 02:17 PM
what are the results of those kickers?
are there any illuminating messages in console?
there may be some lock pids in /var/run that need to be expunged...
% ll /var/run/
total 44k
-rw-r--r-- 1 root daemon 4 Jan 25 10:42 autodiskmount.pid
-rw-r--r-- 1 root daemon 4 Jan 25 10:43 automount.pid
-rw-r--r-- 1 root daemon 4 Jan 25 10:43 cron.pid
-rw-r--r-- 1 root daemon 4 Jan 25 10:43 inetd.pid
-rw-r--r-- 1 root daemon 4 Jan 25 10:43 lookupd.pid
-rw------- 1 root daemon 4 Jan 25 10:43 netinfo_local.pid
-rw-r--r-- 1 root daemon 0 Jan 25 10:43 niconfig_local.xml
-rw-r--r-- 1 root daemon 8 Jan 25 11:43 ntp.drift
-rw-r--r-- 1 root daemon 3 Jan 25 10:43 ntpd.pid
prwxrwxrwx 1 root daemon 0 Jan 25 10:42 pppconfd|
drwxr-xr-x 2 root daemon 264 Dec 8 11:40 proxy/
-rw-r--r-- 1 root daemon 78 Jan 25 10:43 resolv.conf
drwx------ 3 root daemon 264 Jan 24 09:08 sudo/
prw-rw-rw- 1 root daemon 0 Jan 25 10:43 syslog|
-rw-r--r-- 1 root daemon 4 Jan 25 10:43 syslog.pid
-rw-r--r-- 1 root daemon 468 Jan 25 11:41 utmp
Novajo
01-25-2002, 03:04 PM
The kickers don't seem to be what I need and don't provide any feedback. I found /System/Library/Startupitems/Network, but it did not work. I think that's because it requires "Network Configuration" which is provided by /System/Library/Startupitems/ConfigServer. I'll have to see exactly next time my problem occurs, because pppd starts extremely early in the boot process (one of the first thing to show up in system.log), therefore I would not be surprised if ConfigServer would not start it. I'll see.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.