Public bug reported:

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

** Affects: slurm-llnl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1027779

Title:
  stderr of boot script is suppressed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/slurm-llnl/+bug/1027779/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to