Solved

Order/timing of startup programs

Posted on 2004-04-20
8
279 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
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
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to Create Bootable Mac OS X USB Drive 8 164
Citrix 6.5 / Receiver 12.x / MAC OS 10.x 9 82
access files on old iMac 3 57
Dual boot vs VM 11 62
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 professional opinion on which Apple product to buy, and a tidbit about the WWDC.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

763 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