[MacPorts] #60534: Print status information for a daemon

MacPorts noreply at macports.org
Fri May 22 08:42:00 UTC 2020


#60534: Print status information for a daemon
-------------------------+--------------------
 Reporter:  FranklinYu   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  base         |    Version:  2.6.2
 Keywords:               |       Port:
-------------------------+--------------------
 Ideally I would like 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/60534>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list