Re: startup item
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.