Opened 4 years ago
Last modified 4 years ago
#60534 new enhancement
Print status information for a daemon — at Version 2
Reported by: | FranklinYu (Franklin Yu) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.6.2 |
Keywords: | Cc: | ||
Port: |
Description (last modified by FranklinYu (Franklin Yu))
I would like a new action print
that does something similar to systemctl status
in systemd. I’m not sure whether everything is available though; I guess we can parse the output of launchctl print
and get some information.
The PID from launchctl print
doesn’t look like the real daemon (at least it’s the case for Apache HTTP Server), but the daemondo
process instead. The real PID locates at
/opt/local/var/run/apache2/httpd.pid
for Apache. I’m not sure whether it’s equivalent to show the status (running/error/not-loaded) of the daemondo
process instead of the real one; showing daemondo
process sounds more generic.
Change History (2)
comment:1 Changed 4 years ago by FranklinYu (Franklin Yu)
comment:2 Changed 4 years ago by FranklinYu (Franklin Yu)
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.
I might work on this if I can find time. Will refer to the
load
actionhttps://github.com/macports/macports-base/blob/v2.6.2/src/port1.0/portload.tcl
for implementation.