Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?
Jeremy Lavergne
jeremy at lavergne.gotdns.org
Sun Feb 16 13:25:15 PST 2014
You could reboot after each switch: anything that’s no longer linked into /opt/local won’t load, and everything else will launch the appropriate version.
On Feb 16, 2014, at 16:23, MK-MacPorts at techno.ms wrote:
> There is still one big problem with all of this, which is that a ton of daemons and agents might be running as root or as another user for a given MacPorts installation.
>
> In case I want to swap in another installation, say a debug installation, I would have to make sure that all these services would be restarted gracefully! That means I would have to search using launchctl for all those services, cancel them with the correct credentials and then restart all of them accordingly.
>
> What a project. :-/
>
> Wondering whether this is actually doable just using launchctl as root…
>
> (In the past I hadn’t been careful enough regarding all this, which lead to quite a bit of trouble with dbus mostly!)
More information about the macports-dev
mailing list