Solved

Order/timing of startup programs

Posted on 2004-04-20
8
280 Views
Last Modified: 2013-11-24
I have an iBook G4 1 GHz running OS X 10.3 and recently installed MSN Messenger for Mac and Virex from the .Mac service.  I have an Airport Extreme card for wireless networking with an older but perfectly functional Linksys 802.11b gateway router.  Intenet access is though Earthlink DSL.

On startup both Virex and MSN Messenger try to connect to the Internet before my Airport Extreme sets up a connection through the Linksys.  The result is that both report errors - Virex because it can't update and MSN Messenger because it can't contact the server.  I can tell both apps to retry almost immediately and they work fine - the connection is there moments after they fail.   Is there some way to adjust the timing of startup applications so that the network connection is established before Virex and MSN Messenger attempt to connect?

Thanks...  Bill
0
Comment
Question by:William Polymenakos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 30

Expert Comment

by:weed
ID: 10879426
If the apps are listed in the startup items section of the Accounts control panel, sure. Otherwise, no.

On a side note, there is no reason to run Virex on OS X. There are a grand total of 0 virii for OS X. Yep, 0.

You may be able to fix the problem by telling your Airport Base Station to maintain a connection and not "connect when needed". Then it's ALWAYS connected.
0
 

Expert Comment

by:holleron
ID: 10882465
There are easier and harder ways to accomplish what you are looking for.
The more difficult methods can also give you more options for choosing schedules or if the application is triggered by an event.

There is an excellent article at http://www.macdevcenter.com/pub/a/mac/excerpt/runmacxpanther8/index.html

You may wish to look to a Mac OS X scheduling application like Cronnix or iBeeZz.

http://www.koch-schmidt.de/cronnix/
http://www.ibeezz.com/en/index.php
0
 
LVL 23

Expert Comment

by:brettmjohnson
ID: 10885916
> You may be able to fix the problem by telling your Airport Base Station to maintain
> a connection and not "connect when needed". Then it's ALWAYS connected.

This is not the problem.  I've noticed that the Airport client and Base Station take 3-10
seconds to establish a connection (handshake, DHCP, DNS, etc).  I have a cable modem
"always on" connection, so establishing a [dial-up] connection is not the problem.  But
if any network aware software attempts to do anything before the 802.11 link is completely
established, I get errors similar to billpoly (especially when waking from sleep).
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 30

Expert Comment

by:weed
ID: 10890201
If you tell the ABS to maintain a connection, there is no connection to establish. It's already established permanently. The ABS maintains it. You CAN actually "log out" on a dsl or cable modem even if its "always on" and you'd get the same delays. But if you let the ABS force it to be active all the time, your machines wont have a delay.
0
 
LVL 1

Author Comment

by:William Polymenakos
ID: 10895834
I have to agree with brettmjohnson - the problem isn't that the ABS (not what I'm using in this case, but an example nonetheless) needs to maintain a broadband connection.  The problem is that the CLIENT AirPort Extreme card needs to establish the connection (handshake, etc.) with the ABS during boot.  It is while this process is taking place that some network-aware applications will start and fail due to the lack of an established connection between the client AirPort Extreme in the iBook and the ABS.  Once the connection process between the two is completed then I can retry the network-aware apps and all works fine.  I'm looking for a way to have these apps wait (or be delayed) until after a network connection is established to attempt their connections.
0
 
LVL 23

Accepted Solution

by:
brettmjohnson earned 50 total points
ID: 10897105
Since I don't use MSN Messenger or Virex, I don't know if they have true OS X  style StartupItems.
If so, you should find directories for them in the /Library/StartupItems folder.  

Inside each of those directories you should find a StartupParameters.plist file.
In the StartupParameters.plist file is a line called "Requires" which details which startup
services must already be running before this new service can start.

Network aware apps like Messenger obviously require the Network service to running.
On OS X this simply seems to mean the hardware is alive and a link is present.  Naming
services may be running, but an attempt to actually resolve a name may fail because the
Network may not yet have a route to the outside world.

I suggest creating a new service (WWWaccess) that tests for a route to the outside,
perhaps using dig to resolve the name of a well known site that is not likely to be cached locally.  
This will test that external DNS is working.  If that is working, then MSN Messenger should be
able to connect up to its service, so modify Messenger's StartupParameters.plist to Require the
WWWaccess service to be active before starting.

Now WWWaccess is not a true "Service" in the Unix daemon sense, but it just runs dig with a
short timeout recording its success or failure - possibly delaying the startup sequence by a
couple of seconds (I did say short timeout).

This is all theory.  I didn't try it out.  This also will only work for StartupItems.  It probably
won't help with wake from sleep issues at all.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Thanks to luck and dedication (hitting refresh every 5 seconds when the pre-orders were going live at midnight on April 10th) I managed to actually receive an Apple Watch on release day, April 24th. Which means I’ve been using it daily for just ov…
A lot of new and distinct gadgets are making their appearance every other day. The latest gadget that has wooed the attention of all gadget lovers and non gadget lovers alike is the Smartwatch. This tiny gadget is capable of offering live access to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question