boinc-client service should start after gdm

Bug #820246 reported by Jérôme
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
boinc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I noticed that boinc-client service started as soon as remote and local file systems are available.

However this default behaviour slows down the startup until the end user gets the graphical login prompt.

I think that the default behaviour should wait until the graphical login manager started (gdm, xdm, lxdm, ...). I would make the user feel that the system is faster.

Jérôme (jerome-bouat)
description: updated
affects: ubuntu → boinc (Ubuntu)
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

please run apport-collect 820246

Changed in boinc (Ubuntu):
status: New → Incomplete
Revision history for this message
Jérôme (jerome-bouat) wrote :

I uninstalled boinc-client. Should I install it again for this test ?

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

yes, please install it on ubuntu oneiric and try to reproduce the bug. Thanks

Revision history for this message
Jérôme (jerome-bouat) wrote :

It seems that the boinc client still be launched at early steps :
----------
j@lu64:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
j@lu64:~$ ls /etc/rc5.d/
README S20virtualbox-guest-utils S99grub-common S99rc.local
S20boinc-client S75sudo S99ondemand
j@lu64:~$
----------

Maybe a 'S98boinc-client' link name would be more efficient.

Changed in boinc (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Steffen Möller (moeller-debian) wrote : Re: [Bug 820246] Re: boinc-client service should start after gdm

On 11/12/2011 07:01 PM, Jérôme wrote:
> It seems that the boinc client still be launched at early steps :
> ----------
> j@lu64:~$ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description: Ubuntu 11.10
> Release: 11.10
> Codename: oneiric
> j@lu64:~$ ls /etc/rc5.d/
> README S20virtualbox-guest-utils S99grub-common S99rc.local
> S20boinc-client S75sudo S99ondemand
> j@lu64:~$
> ----------
>
> Maybe a 'S98boinc-client' link name would be more efficient.

Correct me if I am wrong (well, you will correct me, I have little doubt),
but those link names I understand to be set at install time, not by the
package.

$ head -13 debian/*boinc*init
#! /bin/sh
### BEGIN INIT INFO
# Provides: boinc
# Required-Start: $all
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: BOINC core client
# Description: core client for the BOINC distributed computing
# infrastructure
### END INIT INFO

While looking at this ... we do not need boinc to start on 2 and 3, right?
And should we possibly stop at 2 ?

Cheers,

Steffen

Revision history for this message
Jérôme (jerome-bouat) wrote :

I don't know what should be in runlevels 2 and 3.

boinc-client is able to perform a computation even if it has no access to the Internet (network insulated runlevel should not prevent boinc-client to work although the admin would like to stop it).

Revision history for this message
Steffen Möller (moeller-debian) wrote :

Those run levels are interpreted differently across distributions as it seems. I have further changed above dependencies to

### BEGIN INIT INFO
# Provides: boinc
# Required-Start: $all
# Required-Stop: $local_fs $remote_fs
# Should-Start: x11-common, network-manager, gdm, kdm, dbus
# Should-Stop: x11-common
# Default-Start: 4 5
# Default-Stop: 0 1 2 3 6
# Short-Description: BOINC core client
# Description: core client for the BOINC distributed computing
# infrastructure
### END INIT INFO

And if this does not do it then organise a CUDA machine to be donated to me, please, or someone please send the right patch.

Steffen

Changed in boinc (Ubuntu):
status: Confirmed → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
Jérôme (jerome-bouat) wrote :

Maybe we could add the below lines to the file /etc/init/boinc-client.conf on oneiric version :
---
description "BOINC core Client"
start on (runlevel [45] and filesystem and login-session-start)
stop on (desktop-shutdown or runlevel [!45])
...
---

Revision history for this message
Steffen Möller (moeller-debian) wrote :

On 12/03/2011 07:43 PM, Jérôme wrote:
> Maybe we could add the below lines to the file /etc/init/boinc-client.conf on oneiric version :
> ---
> description "BOINC core Client"
> start on (runlevel [45] and filesystem and login-session-start)
> stop on (desktop-shutdown or runlevel [!45])
> ...
> ---
>

I am afraid I need an explicit patch for me to guess what to do :) There is no /etc/init on my system. Daniel?

Cheers,
Steffen

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Hi Steffen could you explain this commit?
http://anonscm.debian.org/gitweb/?p=pkg-boinc/boinc.git;a=commitdiff;h=e14ea0de54a3012476fc06e21fe7a19c454eb6c7
somewhere your fix should have broke something

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.