• 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: A Couple of Daemon Questons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A Couple of Daemon Questons


  • Subject: Re: A Couple of Daemon Questons
  • From: Nick Zitzmann <email@hidden>
  • Date: Sun, 18 Jul 2004 00:56:40 -0600

On Jul 17, 2004, at 10:56 PM, Kodex wrote:

1) How do i launch and stop a daemon from a cocoa app?
Is there a way to do this so you dont see the terminal
during loading?

NSTask, or AuthorizationExecuteWithPrivileges() if the daemon must be run with super-user privileges.

2) Where do i place the daemon file to be loaded at
startup? i could attach it as a login item but once
again i would really prefer not to have it show the
terminal window when loading.

You can make a startup bundle and place it in /Library/StartupItems, but that will run the daemon as the super-user. What does your daemon do, exactly?

Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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.


References: 
 >A Couple of Daemon Questons (From: Kodex <email@hidden>)

  • Prev by Date: Re: Forward delete Key and IB
  • Next by Date: Re: Rounding to two decimals
  • Previous by thread: A Couple of Daemon Questons
  • Next by thread: I've lost my MainMenu.
  • Index(es):
    • Date
    • Thread