Opened 4 years ago
Last modified 4 years ago
#60534 new enhancement
Print status information for a daemon — at Initial Version
Reported by: | FranklinYu (Franklin Yu) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.6.2 |
Keywords: | Cc: | ||
Port: |
Description
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.
Note: See
TracTickets for help on using
tickets.