Upgrade a LaunchDaemon and/or Agent
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