Opened 11 years ago
Closed 10 years ago
#42487 closed enhancement (duplicate)
port reload or restart command
Reported by: | xeron (Ivan Larionov) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.2.99 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), eborisch (Eric A. Borisch), cooljeanius (Eric Gallager), raimue (Rainer Müller) | |
Port: |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
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.
Attachments (1)
Change History (10)
comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
comment:3 Changed 11 years ago by xeron (Ivan Larionov)
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.
comment:4 Changed 11 years ago by jmroot (Joshua Root)
launchctl stop
is basically a restart for any job with KeepAlive set, as it will be immediately started again.
comment:5 Changed 11 years ago by xeron (Ivan Larionov)
man launchctl says about stop that "Use of this subcommand is discouraged".
Changed 11 years ago by xeron (Ivan Larionov)
Attachment: | port_reload.patch added |
---|
comment:9 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #36054.
Note: See
TracTickets for help on using
tickets.
At the moment,
port load
andport unload
simply directly calllaunchctl
. To my knowledge, there is nolaunchctl
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.