chiark / gitweb /
systemctl: improve readability on failed commands
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 3 Jan 2014 22:50:59 +0000 (23:50 +0100)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sat, 4 Jan 2014 11:49:40 +0000 (12:49 +0100)
commit39602c3905da5196987b4df744541295ada725ae
treeea9d11ace84b1afdcfa1b64fc532ac2df7f0752f
parentcd6d5e1c7631d6e74cb04be279dee22e423e08b8
systemctl: improve readability on failed commands

Not long ago a failed command would print:
"Failed to start something.service: ..."
regardless of whether the command was to start/stop/restart/etc.

With e3e0314 this was improved to print the method used. E.g. for stopping:
"Failed to StopUnit something.service: ..."

This patch matches the method to a more human readable word. E.g:
"Failed to stop something.service: ..."
src/systemctl/systemctl.c