aboutsummaryrefslogtreecommitdiff
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d3
1 files changed, 2 insertions, 1 deletions
diff --git a/rc.d b/rc.d
index a7b214e..5cb03f8 100755
--- a/rc.d
+++ b/rc.d
@@ -69,7 +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 $i does not exist.${C_CLEAR}\n"
+ printf "${C_OTHER}:: ${C_FAIL}Error: ${C_DONE}Daemon script \`%s' does not exist or is not executable.${C_CLEAR}\n" \
+ "$i"
fi
(( ret += !! $? )) # clamp exit value to 0/1
done