summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/rc.subr12
1 files changed, 9 insertions, 3 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index 15377b0..724bc6a 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -673,11 +673,14 @@ run_rc_command()
return 1
fi
- _run_rc_precmd || return 1
+ if ! _run_rc_precmd; then
+ warn "failed precmd routine for ${name}"
+ return 1
+ fi
# setup the full command to run
#
- echo "Starting ${name}."
+ [ -z "${rc_quiet}" ] && echo "Starting ${name}."
if [ -n "$_chroot" ]; then
_doit="\
${_nice:+nice -n $_nice }\
@@ -700,7 +703,10 @@ $command $rc_flags $command_args"
# run the full command
#
- _run_rc_doit "$_doit" || return 1
+ if ! _run_rc_doit "$_doit"; then
+ warn "failed to start ${name}"
+ return 1
+ fi
# finally, run postcmd
#
OpenPOWER on IntegriCloud