Bug#600134: boinc-client: Init script : "renice" usage error

Stéphane Rosi stephane.rosi at gmail.com
Wed Oct 13 21:04:05 UTC 2010

Package: boinc-client
Version: 6.10.58+dfsg-3
Severity: normal
Tags: patch


When I start boinc-client with the init script, I get the following error message :

> root at razor:~# /etc/init.d/boinc-client start
> Starting BOINC core client: boinc.
> Setting up scheduling for BOINC core client and children: idle,usage: renice priority [ [ -p ] pids ] [ [ -g ] pgrps ] [ [ -u ] users ]
> usage: renice priority [ [ -p ] pids ] [ [ -g ] pgrps ] [ [ -u ] users ]
> usage: renice priority [ [ -p ] pids ] [ [ -g ] pgrps ] [ [ -u ] users ]
> chrt failed.

This is caused by minor argument error in the init script ("renice -n $NICELEVEL -p $PID" instead "renice $NICELEVEL -p $PID").
The attached patch solves the problem.


-- Package-specific info:
-- Contents of /etc/default/boinc-client:
# This file is /etc/default/boinc-client, it is a configuration file for the
# /etc/init.d/boinc-client init script.

# Set this to 1 to enable and to 0 to disable the init script.

# Set this to 1 to enable advanced scheduling of the BOINC core client and
# all its sub-processes (reduces the impact of BOINC on the system's
# performance).

# The BOINC core client will be started with the permissions of this user.

# This is the data directory of the BOINC core client.

# This is the location of the BOINC core client, that the init script uses.
# If you do not want to use the client program provided by the boinc-client
# package, you can specify here an alternative client program.

# Here you can specify additional options to pass to the BOINC core client.
# Type 'boinc --help' or 'man boinc' for a full summary of allowed options.

-- System Information:
Debian Release: 5.0.6
Architecture: i386 (i586)

Kernel: Linux 2.6.32-5-486
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages boinc-client depends on:
ii  adduser                3.110             add and remove users and groups
ii  ca-certificates        20090814+nmu2     Common CA certificates
ii  debconf [debconf-2.0]  1.5.24            Debian configuration management sy
ii  libc6                  2.11.2-6          Embedded GNU C Library: Shared lib
ii  libcurl3               7.18.2-8lenny4    Multi-protocol file transfer libra
ii  libgcc1                1:4.3.2-1.1       GCC support library
ii  libssl0.9.8            0.9.8o-2          SSL shared libraries
ii  libstdc++6             4.4.5-2           The GNU Standard C++ Library v3
ii  lsb-base               3.2-20            Linux Standard Base 3.2 init scrip
ii  python                 2.5.2-3           An interactive high-level object-o
ii  zlib1g                 1: compression library - runtime

boinc-client recommends no packages.

Versions of packages boinc-client suggests:
pn  boinc-app-seti                <none>     (no description available)
pn  boinc-manager                 <none>     (no description available)

-- debconf information:
  boinc-client/remove_boinc_dir: false
-------------- next part --------------
--- boinc-client.old	2010-10-13 21:02:46.000000000 +0200
+++ /etc/init.d/boinc-client	2010-10-13 21:24:17.000000000 +0200
@@ -139,7 +139,7 @@
    shift 3
    for i in "$@"; do
      chrt -p $POLICY $PRIO $i || return
-     renice -n $NICE -p $i
+     renice $NICE -p $i

More information about the pkg-boinc-devel mailing list