Port Upgrade vs Loaded Startupitems
Joshua Root
jmr at macports.org
Sun Oct 25 17:49:40 PDT 2009
On 2009-10-26 09:37, Ryan Stonecipher-Fisher wrote:
> A port I co-maintain (mpd) includes a startupitem section which I keep
> loaded using 'launchctl load -w'.
> Upon updating the port, the old binary is still running in launchd
> limbo; 'launchctl unload -w' doesn't work properly, so in turn
> 'launchctl load -w' doesn't work properly either.
> Are startupitems unloaded during port deactivation?
> If not, could that step be added to deactivation for ports which do
> contain startupitems?
Sure. As has been mentioned before, the startupitem code needs some love.
For bonus points, record both the state of the plist (enabled/disabled)
and whether the daemon is actually running (since these aren't
necessarily the same), and restore both to their former state after the
upgrade completes.
- Josh
More information about the macports-dev
mailing list