Skip to content

Commit

Permalink
Merge pull request #93 from andresgongora/bug/systemctlFail
Browse files Browse the repository at this point in the history
Make systemctl show all failed units
  • Loading branch information
olmari committed Jun 8, 2019
2 parents 6b272ed + 00bbb7f commit 86eb99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terminal/status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ printSystemctl()
systcl_num_failed=$(systemctl --failed | grep "loaded units listed" | head -c 1)

if [ "$systcl_num_failed" -ne "0" ]; then
local failed=$(systemctl --failed | grep ".service")
local failed=$(systemctl --failed | systemctl --failed|awk '/UNIT/,/^$/')
printf "${fc_crit}SYSTEMCTL FAILED SERVICES:\n"
printf "${fc_info}${failed}${fc_none}\n\n"

Expand Down

0 comments on commit 86eb99d

Please sign in to comment.