• 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: luanchd plist won't load after restart
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: luanchd plist won't load after restart


  • Subject: Re: luanchd plist won't load after restart
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 27 Aug 2009 11:08:03 -0700


On Aug 27, 2009, at 10:59 AM, Ian Mark Salvame wrote:

I created a luanchd plist which advertises my own bonjour service type (e.g. _myservice._udp)
I put the plist inside the /Library/LaunchAgents/ folder with root:wheel permission.
I loaded the plist successfully by using sudo launchctl and my service got advertised.


But when I restart my host, launchd does not load my plist automatically.
This happens in my Leopard machine but was not able to reproduce in Tiger.

Are you sure LaunchAgents is what you want? Those are per-user, so none of them will run if no one's logged in, and multiple copies will run if multiple users are logged in (which means you can't hardcode a port number). They also run with the permissions of the current user. That might explain your problem? If you want a single service per machine, use LaunchDaemons instead.


(Note that 'sudo launchctl' will talk to the root launchd process, which is responsible for daemons, not agents. Use just plain 'launchctl' to interact with agents.)

—Jens _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >luanchd plist won't load after restart (From: Ian Mark Salvame <email@hidden>)

  • Prev by Date: luanchd plist won't load after restart
  • Next by Date: Re: luanchd plist won't load after restart
  • Previous by thread: luanchd plist won't load after restart
  • Next by thread: Re: luanchd plist won't load after restart
  • Index(es):
    • Date
    • Thread