• 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
startup item : at last !
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

startup item : at last !


  • Subject: startup item : at last !
  • From: Lloyd Dupont <email@hidden>
  • Date: Wed, 11 Jun 2003 15:20:23 +1000

I didn't know what went wrong previously with grep.
anyway my service started too early, probably before the mysterious 'rendezvous' service
(does someone know which one it is ?)

I put in the StartupParameters.plist:
OrderPreference = "Last";

and it "just work" (just like a mac thing !)

Anyway, could someone enlighten me about 10.1 & startup item ?


On Wednesday, June 11, 2003, at 03:01 PM, Lloyd Dupont wrote:

first I should apologize.
due to a limited understanding of the magic of the 'ps -aux | grep something' command I was searching why my startup items didn't work, whereas it did work !

but one problem remain, I register a NSNetService in my service. but this service doesn't appear, I can't see it.
is there a kind of limitation of NSNetService regarding startup items ?

maybe I should put a require 'rendezvous service' ?
which one it is ?

any tip ?

On Wednesday, June 11, 2003, at 02:34 PM, Lloyd Dupont wrote:

some precision.
my startup item (and my startup script) is called iHookSpy.

as you could see the startup script execute an other executable called SpyServer (in the same directory)
so there is no problem.
why didn't I directly run the service (SpyServer) ?

well, the function had to return to let other script be executed and DO didn't work after a fork().

so it like this:
myService:
myService
myProg

// --myService --
myProg start &

//-- myprog --
main()
{
// register DO & NSNetService
// start a timer
// start an event loop and wait ....
}


On Tuesday, June 10, 2003, at 09:06 PM, Lloyd Dupont wrote:

Have you checked ownership/permissions? Compare these to other startup items. Check directories (folders) too.
Are all dependencies being described in the "Requires property?
You can boot into single user mode and bring startup services up manually to see what is happening. Use -d or -D for debug info.

no worry.
I discover I should have something wrong in my executbale (don't know what yet)
I wrote this in my startup script:
StartService()
{
ConsoleMessage "Starting iHookSpy"
/Library/StartupItems/iHookSpy/SpyServer start 1>/Library/StartupItems/iHookSpy/stdout.txt 2>/Library/StartupItems/iHookSpy/stderr.txt &
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

If I am understanding this correctly, the startup script is invoking the startup script. Huh? Shouldn't this be invoking your daemon executable?

---
Creed Erickson <email@hidden>
"Not a shred of evidence exists in favor of the idea that life is serious."
- Brendan Gill
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: startup item : at last !
      • From: Jeff Harrell <email@hidden>
References: 
 >more about startup item (From: Lloyd Dupont <email@hidden>)

  • Prev by Date: Re: troubling article
  • Next by Date: SOAP return values -- Question
  • Previous by thread: more about startup item
  • Next by thread: Re: startup item : at last !
  • Index(es):
    • Date
    • Thread