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

MacPorts noreply at macports.org
Sat May 23 03:21:05 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
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------

Comment (by FranklinYu):

 Thanks Ken, this is very helpful. I should have included an example
 myself. I actually wanted the usage that prints a single service (a.k.a.
 "job" in launchctl term); for example, `systemctl status ssh` gives

 {{{
 ● ssh.service - OpenBSD Secure Shell server
    Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor
 preset: enabled)
    Active: active (running) since Sun 2020-02-09 19:30:14 UTC; 3 months 11
 days ago
      Docs: man:sshd(8)
            man:sshd_config(5)
   Process: 816 ExecStartPre=/usr/sbin/sshd -t (code=exited,
 status=0/SUCCESS)
  Main PID: 828 (sshd)
     Tasks: 1 (limit: 663)
    Memory: 6.2M
    CGroup: /system.slice/ssh.service
            └─828 /usr/sbin/sshd -D
 }}}

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


More information about the macports-tickets mailing list