summaryrefslogtreecommitdiff
path: root/rc.d
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-06-01 01:56:48 +0200
committerTom Gundersen <teg@jklm.no>2011-06-01 01:56:48 +0200
commita41c290180a5f7d0c7aa9eef2210956dd0a8bc63 (patch)
treea8b6048add82d728041617f66c10b11d6619bbbd /rc.d
parent017b5a689363aac54313b6e51d0da713f33787b7 (diff)
parentaac43067a13f1940f8f81f45142463e85ce21de2 (diff)
Merge branch 'snowman'
Conflicts: rc.d Trivial conflict with dave's eval purge. Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.d')
-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