aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrc.d6
1 files changed, 5 insertions, 1 deletions
diff --git a/rc.d b/rc.d
index 9aa5a65..772f2c6 100755
--- a/rc.d
+++ b/rc.d
@@ -55,7 +55,11 @@ case $1 in
"TERM=$TERM")
cd /
for i; do
- [[ -x "/etc/rc.d/$i" ]] && /usr/bin/env -i "${ENV[@]}" "/etc/rc.d/$i" "$action"
+ if [[ -x "/etc/rc.d/$i" ]]; then
+ /usr/bin/env -i "${ENV[@]}" "/etc/rc.d/$i" "$action"
+ else
+ printf "${C_OTHER}:: ${C_FAIL}Error: ${C_DONE}Daemon script $i does not exist.\n"
+ fi
(( ret += !! $? )) # clamp exit value to 0/1
done
esac