summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-13 02:15:10 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-13 02:15:10 +0200
commit75676b7287c50b5e03ed0143c65b93d435ff8b6c (patch)
tree7a58edd30863d698fc1c37c72ab185ad0ec89535
parent4455bcd0e646eda1a952671734045bf1b2e9b69f (diff)
man: document new 'systemctl status PID' syntax
-rw-r--r--man/systemctl.xml7
-rw-r--r--src/systemctl.c2
2 files changed, 6 insertions, 3 deletions
diff --git a/man/systemctl.xml b/man/systemctl.xml
index 6e4b203d88..1c5c884f8c 100644
--- a/man/systemctl.xml
+++ b/man/systemctl.xml
@@ -357,7 +357,7 @@
state to STDOUT.</para></listitem>
</varlistentry>
<varlistentry>
- <term><command>status [NAME...]</command></term>
+ <term><command>status [NAME...|PID...]</command></term>
<listitem><para>Show terse runtime
status information about one or more
@@ -365,7 +365,10 @@
generate human-readable output. If you
are looking for computer-parsable
output, use <command>show</command>
- instead.</para></listitem>
+ instead. If a PID is passed
+ information about the unit the process
+ of the PID belongs to is
+ shown.</para></listitem>
</varlistentry>
<varlistentry>
<term><command>show [NAME...|JOB...]</command></term>
diff --git a/src/systemctl.c b/src/systemctl.c
index cf075ed7a3..6d17649a7f 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -3709,7 +3709,7 @@ static int systemctl_help(void) {
" otherwise restart if active\n"
" isolate [NAME] Start one unit and stop all others\n"
" is-active [NAME...] Check whether units are active\n"
- " status [NAME...] Show runtime status of one or more units\n"
+ " status [NAME...|PID...] Show runtime status of one or more units\n"
" show [NAME...|JOB...] Show properties of one or more\n"
" units/jobs or the manager\n"
" reset-maintenance [NAME...] Reset maintenance state for all, one,\n"