Ticket #23677 (new enhancement)
Uninstall of a port should automatically unload daemons
|Reported by:||tomldavis@…||Owned by:||macports-tickets@…|
|Keywords:||startupitem launchctl||Cc:||ryandesign@…, rmstonecipher@…|
I'm developing on a port that starts a daemon using startupitem.executable. During installation, I get the standard message "A startup item has been generated ...". After I start the daemon with launchctl, everything works as expected.
However, if I uninstall the port without first manually unloading the daemon with launchctl, launchd repeatedly tries to restart the daemon (which of course no longer exists) every 10 seconds, ad infinitum.
This behavior (not automatically unloading daemons on uninstall) seems contrary to the MacPorts philosophy of a clean install/uninstall. This seems like a huge trap for the non-developer that doesn't have any idea of what launchd does and just wants to uninstall a port.