stderr of boot script is suppressed

Bug #1027779 reported by Peter Kruse
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
slurm-llnl (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello,

in the boot script of slurm-llnl we find this piece:

  STARTERRORMSG="$(start-stop-daemon --start --oknodo \
                        --exec "$SBINDIR/$1" -- $2 2>&1)"
  STATUS=$?
  log_end_msg $STATUS
  if [ "$STARTERRORMSG" != "" ] ; then
    echo $STARTERRORMSG
  fi

and this:

    STOPERRORMSG="$(start-stop-daemon --oknodo --stop -s TERM \
                        --exec "$SBINDIR/$1" 2>&1)"
    STATUS=$?
    log_end_msg $STATUS
    if [ "$STOPERRORMSG" != "" ] ; then
      echo $STOPERRORMSG
    fi

effectively suppressing the stand error messages (http://en.wikipedia.org/wiki/Stderr#Standard_error_.28stderr.29).
Please do echo error messages to stderr like this:

    echo $STARTERRORMSG >&2

and

      echo $STOPERRORMSG >&2

thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.