BOINC core client warns incorrectly on startup

Bug #448514 reported by Stephen Day
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
boinc (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: boinc

/etc/init.d/boinc-client contains:
...
        if [ ! `echo $FOO | grep -- '--daemon' 1>/dev/null` ]; then
                log_warning_msg "\`--deamon' option detected \
                        on /etc/default/boinc-client, this \
                        can cause problems on boinc. The option \
                        will be suppressed"
                        BOINC_OPTS=`echo "$BOINC_OPTS" | sed 's/--daemon//'`
        fi
...

$FOO doesn't appear to be set anywhere and the test is checking for the inverse result. The result is I get this warning displayed on each startup even though I do not have '--daemon' set in /etc/default/boinc-client.

I believe the correct code should be something like:
...
        echo $BOINC_OPTS | grep -q -- '--daemon'
        if [ '$?' -eq 0 ]; then
                log_warning_msg "\`--daemon' option detected in /etc/default/boinc-client. This option will be suppressed."
                BOINC_OPTS=`echo "$BOINC_OPTS" | sed 's/--daemon//'`
        fi
...

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: boinc-client 6.2.18-3ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: boinc
Uname: Linux 2.6.28-15-generic x86_64

Revision history for this message
Stephen Day (sd) wrote :
Revision history for this message
Stephen Day (sd) wrote :

This bug does still exist on normally updated Ubuntu 9.04 systems.

This bug does not exist on normally updated Ubuntu 9.10 or 10.04 systems.

Revision history for this message
Timmy Shih Jun Yee (shijun) wrote :

Closing this bug because the reporter says this has been fixed in Ubuntu 9.10.

Changed in boinc (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers