• 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
launchd and programmatic access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

launchd and programmatic access


  • Subject: launchd and programmatic access
  • From: Jason Coco <email@hidden>
  • Date: Fri, 3 Oct 2008 13:17:26 -0400

Hello all,

I have a question about the launchd API from launch.h...

background:

I have a daemon application that is using launchd but is a cross- platform application so I can't make it totally launchd aware (it's written in Java). It has a plist that lives in /Library/LaunchDaemons and starts up properly without any issues.

My problem is that I have created a preference pane that I want the console use to be able to use to get status, set some configuration options and start/stop the service. The pref pane includes a setuid helper application that does proper authorization, etc. however, I can't seem to find my job through the launchd API in order to perform operaitons on it (start/stop, list status, etc). I'm thinking this is a mach-namespace issue... is there any way to resolve this? To force the API to use the root namespace??? I really don't want to write tons of hacks/scripts etc if possible.

I am running on 10.5.5. If any other information is needed to assist, please let me know.

Thanks, Jason

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: launchd and programmatic access
      • From: Damien Sorresso <email@hidden>
  • Prev by Date: [darwin-dev] Building dyld: /usr/local/system/lib/libc.a ?
  • Next by Date: Re: launchd and programmatic access
  • Previous by thread: Re: [darwin-dev] Building dyld: /usr/local/system/lib/libc.a ?
  • Next by thread: Re: launchd and programmatic access
  • Index(es):
    • Date
    • Thread