Ubuntu Technical

Ubuntu technical problems and solutions reference, a modern cookbook.

Stop or start BOINC daemon after boot

I have installed BOINC client, to subscribe to some projects meant to discovery alien life or at least some new pulsars.
However, I have noticed that the client, in contrast to it’s Windows counterpart, didn’t have an option in Preferences for auto-start on system boot. Of course it was starting up automatically and that’s not good in my book. So I started digging a little bit, and came across the documentation page

In a nutshell, the “init” script is:

/etc/init.d/boinc-client 

The following commands (with self-explanatory options) can be directly run on the script:

./etc/init.d/boinc-client start
./etc/init.d/boinc-client stop
./etc/init.d/boinc-client restart
./etc/init.d/boinc-client status

As I have now found out, in a Debian-based Linux distributions you use the update-rc.d command to turn a system service (daemon) on or off at boot time (I needed to use the -f force option to remove boinc-client, don’t know exactly why):

# tells the system to start the BOINC client as a daemon at boot time
sudo update-rc.d boinc-client defaults 98
# tells the system not to start the BOINC client at boot time
sudo update-rc.d -f boinc-client remove

Cheers



Flattr this

Advertisements

2 responses to “Stop or start BOINC daemon after boot

  1. nicu marasoiu June 30, 2014 at 8:01 am

    Hi, i removed boinc form automatic startup with this advice, and now boinc does not find any projects attached when i manually start it, do you know why?

  2. UbuntuEnthusiast2015 July 5, 2015 at 1:51 pm

    Here is what worked for me in 14.04 after loading okay, closing BOINC manager, then restarting it only to find it blank and not connected to any project/host:

    Enter in a terminal:

    sudo /etc/init.d/boinc-client force-reload

    After this, starting BOINC manager seems to have it reconnected with local host and working as expected.

    This terminal command also works to stop the BOINC client

    sudo /etc/init.d/boinc-client stop

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: