[MacPorts] #23677: Uninstall of a port should automatically unload daemons
#23677: Uninstall of a port should automatically unload daemons -----------------------------------+---------------------------------------- Reporter: tomldavis@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 1.8.2 Keywords: startupitem launchctl | Port: -----------------------------------+---------------------------------------- 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. -- Ticket URL: <http://trac.macports.org/ticket/23677> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23677: Uninstall of a port should automatically unload daemons -----------------------------------+---------------------------------------- Reporter: tomldavis@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 1.8.2 Keywords: startupitem launchctl | Port: -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: And when you upgrade a port that you've previously loaded, perhaps MacPorts should unload the old version's daemon and load the new one. -- Ticket URL: <http://trac.macports.org/ticket/23677#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23677: Uninstall of a port should automatically unload daemons -----------------------------------+---------------------------------------- Reporter: tomldavis@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 1.8.2 Keywords: startupitem launchctl | Port: -----------------------------------+---------------------------------------- Comment(by ryandesign@…): Resolving this would also close #14774 where this was previously brought up. -- Ticket URL: <https://trac.macports.org/ticket/23677#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23677: Uninstall of a port should automatically unload daemons -----------------------------------+---------------------------------------- Reporter: tomldavis@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 1.8.2 Keywords: startupitem launchctl | Port: -----------------------------------+---------------------------------------- Comment(by rmstonecipher@…): On the other end of things, ports with startupitems usually work best when their startupitems are loaded.[[br]] If the port with a startupitem is several steps ahead of the user's requested port install, the "load the startupitem" note may be missed.[[br]] Could the user be cut out of this equation by auto-loading startupitems during the activate phase?[[br]] This would work for ports with startupitems which work as-is, but others may experience one or more of the following problems: * some ports use both user- and system-level startupitems (e.g. dbus) * some ports have configuration files that must be edited before running the daemon/startupitem[[br]] What other issues could auto-loading startupitems cause?[[br]][[br]] Ryan Stonecipher -- Ticket URL: <https://trac.macports.org/ticket/23677#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts