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

Re: startup item


  • Subject: Re: startup item
  • From: Lloyd Dupont <email@hidden>
  • Date: Wed, 11 Jun 2003 14:34:53 +1000

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.

  • Follow-Ups:
    • more about startup item
      • From: Lloyd Dupont <email@hidden>
References: 
 >Re: startup item (From: Creed Erickson <email@hidden>)

  • Prev by Date: Re: troubling article
  • Next by Date: Re: troubling article
  • Previous by thread: Re: startup item
  • Next by thread: more about startup item
  • Index(es):
    • Date
    • Thread