• 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
Upgrade a LaunchDaemon and/or Agent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Upgrade a LaunchDaemon and/or Agent


  • Subject: Upgrade a LaunchDaemon and/or Agent
  • From: Jeremy Reichman <email@hidden>
  • Date: Wed, 23 Nov 2011 11:43:00 -0500
  • Thread-topic: Upgrade a LaunchDaemon and/or Agent

I am dealing with a potential upgrade scenario for an installer package
including both a LaunchDaemon and a system-wide LaunchAgent. I want to be
prepared for it before the actual upgrade becomes a necessity.

Is anyone aware of whether Installer or Launchd manage the replacement of
these plists and their associated executables if the jobs are already
running? I am particularly interested in the situation for LaunchDaemons.

Should I be creating an installer preflight (for example) to unload these
launchd jobs first, before the relevant plists and executables are
replaced by the package payload? Will unloading the jobs be sufficient to
allow the successful upgrade/replacement of the plists and executables? If
the jobs were running prior to the upgrade, will the previously-running
versions still be running without any scripted intervention on my part --
or logout/reboot?

If this is documented canonically, I have missed it. I am most interested
in what works for Leopard, Snow Leopard, and Lion clients.

Thanks!

--
Jeremy


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

This email sent to email@hidden

  • Prev by Date: Re: Installer script requiring super-user access
  • Next by Date: Re: Installation error on 10.7 only: Install Failed: Error Domain=NSCocoaErrorDomain Code=4 "The file "Staging" doesn't exist."
  • Previous by thread: Re: Installer script requiring super-user access
  • Index(es):
    • Date
    • Thread