summaryrefslogtreecommitdiff
path: root/rc.d
diff options
context:
space:
mode:
authorSebastien Luttringer <seblu@seblu.net>2011-08-08 20:50:51 +0200
committerSebastien Luttringer <seblu@seblu.net>2011-08-27 18:08:07 +0200
commit4e573b6b35d4468b4b3856a7784728f75ab2e73a (patch)
tree43066d00cbc058d0efe41d66a6fa2e2d7fee5218 /rc.d
parent1ce1675dd7c2edf89c58be70908df289c2b2665b (diff)
New smarter display of bad daemon names in rc.d
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d b/rc.d
index 5cb03f8..9b0f092 100755
--- a/rc.d
+++ b/rc.d
@@ -69,8 +69,8 @@ case $1 in
if [[ -x "/etc/rc.d/$i" ]]; then
env -i "${ENV[@]}" "/etc/rc.d/$i" "$action"
else
- printf "${C_OTHER}:: ${C_FAIL}Error: ${C_DONE}Daemon script \`%s' does not exist or is not executable.${C_CLEAR}\n" \
- "$i"
+ printf "${C_FAIL}:: ${C_DONE}Daemon ${C_FAIL}$i${C_DONE} does not exist \
+or is not executable${C_CLEAR}\n"
fi
(( ret += !! $? )) # clamp exit value to 0/1
done