ps: possibility to display machine name for a process
authorLukas Nykryn <lnykryn@redhat.com>
Mon, 22 Apr 2013 10:33:31 +0000 (12:33 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Wed, 24 Apr 2013 07:24:44 +0000 (09:24 +0200)
commit4c1536d5f1a1bdab72b2b751a466c6e3868ed00b
tree79f6a2660a099e79f3a143f8169f77a7d90dbd72
parent785776c10d38b3c6773b15ac7017327c4fa3a01b
ps: possibility to display machine name for a process

Library systemd-login offers possibility to display
the name of the VM or container which process belongs to.

This patch adds output option "sd_machine" which will
show machine name or "-" when the name can not be determined.

To maintain compatibility with non-systemd systems,
procps must be configured with --with-systemd option
to enable this option.
configure.ac
ps/output.c
ps/ps.1