[MacPorts] #42487: port reload or restart command
#42487: port reload or restart command ---------------------------+-------------------------------- Reporter: xeron.oskom@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.2.99 Keywords: | Port: ---------------------------+-------------------------------- Please implement port reload (or port restart) command, which will do something similar to: port unload && port load optional: without disabling/enabling OSX launchd autostart. -- Ticket URL: <https://trac.macports.org/ticket/42487> MacPorts <http://www.macports.org/> Ports system for OS X
#42487: port reload or restart command ----------------------------+-------------------------------- Reporter: xeron.oskom@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.2.99 Resolution: | Keywords: Port: | ----------------------------+-------------------------------- Old description:
Please implement port reload (or port restart) command, which will do something similar to:
port unload && port load
optional: without disabling/enabling OSX launchd autostart.
New description: Please implement port reload (or port restart) command, which will do something similar to: {{{ port unload && port load }}} optional: without disabling/enabling OSX launchd autostart. -- Comment (by ryandesign@…): At the moment, `port load` and `port unload` simply directly call `launchctl`. To my knowledge, there is no `launchctl` equivalent for a restart or reload command. Perhaps we should check if there is any literature on the best method to restart a launchd-controlled service. -- Ticket URL: <https://trac.macports.org/ticket/42487#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#42487: port reload or restart command ----------------------------+-------------------------------- Reporter: xeron.oskom@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.2.99 Resolution: | Keywords: Port: | ----------------------------+-------------------------------- Comment (by xeron.oskom@…): I've implemented it in simple copy&paste way. Actually I believe load/unload/reload commands could use common codebase because it's really copypasted here, but I don't know tcl enough to optimize it. -- Ticket URL: <https://trac.macports.org/ticket/42487#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#42487: port reload or restart command ----------------------------+-------------------------------- Reporter: xeron.oskom@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.2.99 Resolution: | Keywords: Port: | ----------------------------+-------------------------------- Comment (by jmr@…): `launchctl stop` is basically a restart for any job with KeepAlive set, as it will be immediately started again. -- Ticket URL: <https://trac.macports.org/ticket/42487#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#42487: port reload or restart command ----------------------------+-------------------------------- Reporter: xeron.oskom@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.2.99 Resolution: | Keywords: Port: | ----------------------------+-------------------------------- Comment (by xeron.oskom@…): man launchctl says about stop that "Use of this subcommand is discouraged". -- Ticket URL: <https://trac.macports.org/ticket/42487#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#42487: port reload or restart command ----------------------------+-------------------------------- Reporter: xeron.oskom@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: base | Version: 2.2.99 Resolution: duplicate | Keywords: Port: | ----------------------------+-------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => duplicate Comment: Duplicate of #36054. -- Ticket URL: <https://trac.macports.org/ticket/42487#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts