• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Network change
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Network change
      • From: Chuck Hill <email@hidden>
  • Prev by Date: WebObjects classloader fun.
  • Next by Date: Re: Network change
  • Previous by thread: Re: WebObjects classloader fun.
  • Next by thread: Re: Network change
  • Index(es):
    • Date
    • Thread