systemctl: direct the user to list-unit-files from the list-units output

This commit is contained in:
Lennart Poettering 2012-09-12 08:56:57 +02:00
parent d4e9eb91ea
commit bb3241614a

View File

@ -425,9 +425,11 @@ static void output_units_list(const struct unit_info *unit_infos, unsigned c) {
"JOB = Pending job for the unit.\n");
if (arg_all)
printf("\n%u units listed.\n", n_shown);
printf("\n%u loaded units listed.\n"
"To show all installed unit files use 'systemctl list-unit-files'.\n", n_shown);
else
printf("\n%u units listed. Pass --all to see inactive units, too.\n", n_shown);
printf("\n%u loaded units listed. Pass --all to see loaded but inactive units, too.\n"
"To show all installed unit files use 'systemctl list-unit-files'.\n", n_shown);
}
}