summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Pigott <rpigott@berkeley.edu>2019-08-05 19:07:31 -0700
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-08-06 08:38:43 +0200
commit46ff70ca6959108facca65923b3b70c72822701e (patch)
treed6fb5aae0cfd891374c4d0f9b6912faeaaa68793
parent2c520df429b766e27dec8a8383ce4a10622a33d9 (diff)
downloadsystemd-46ff70ca6959108facca65923b3b70c72822701e.tar.gz
systemctl: Add unit file states to state help message
-rw-r--r--src/systemctl/systemctl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index ec3e2a31dd..d3c643bfad 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -83,6 +83,7 @@
#include "terminal-util.h"
#include "tmpfile-util.h"
#include "unit-def.h"
+#include "unit-file.h"
#include "unit-name.h"
#include "user-util.h"
#include "utf8.h"
@@ -7904,6 +7905,10 @@ static void help_states(void) {
DUMP_STRING_TABLE(unit_active_state, UnitActiveState, _UNIT_ACTIVE_STATE_MAX);
if (!arg_no_legend)
+ puts("\nAvailable unit file states:");
+ DUMP_STRING_TABLE(unit_file_state, UnitFileState, _UNIT_FILE_STATE_MAX);
+
+ if (!arg_no_legend)
puts("\nAvailable automount unit substates:");
DUMP_STRING_TABLE(automount_state, AutomountState, _AUTOMOUNT_STATE_MAX);