more about startup item
more about startup item
- Subject: more about startup item
- From: Lloyd Dupont <email@hidden>
- Date: Wed, 11 Jun 2003 15:01:16 +1000
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.