Network change
Network change
- Subject: Network change
- From: Kieran Kelleher <email@hidden>
- Date: Thu, 29 Mar 2007 23:28:58 -0400
I am sure anyone with a laptop sees the "No instance available"
problem often when they move from one network to another. Whenever I
see this after moving networks, I run the following script which used
to work 99% of the time on my old Macbook Pro, but doing something
similar on new Core 2 Duo MBP does not seem to work so well anymore
and sometimes a reboot is all that works. Any suggestions as to
additional stuff I can reset/restart or other variations of this that
works well to get rid of the "No instance available" message when
switching networks on my dev laptop? Anyone care to share their "fix
it" scripts?
#!/bin/bash
if [ `whoami` != "root" ]; then
echo "You must be root to use this!"
exit 1
fi
echo "Stopping Apache..."
apachectl stop
echo "Stopping WebObjects..."
/System/Library/StartupItems/WebObjects/WebObjects stop
echo "sleep 1 (seconds)"
sleep 1
echo "Starting WebObjects..."
/System/Library/StartupItems/WebObjects/WebObjects start
echo "Starting Apache..."
apachectl start
echo "Done."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden