climateprediction.net home page
Running BOINC as daemon/auto-startup process on Ubuntu

Running BOINC as daemon/auto-startup process on Ubuntu

Questions and Answers : Unix/Linux : Running BOINC as daemon/auto-startup process on Ubuntu
Message board moderation

To post messages, you must log in.

AuthorMessage
old_user29078

Send message
Joined: 9 Nov 04
Posts: 11
Credit: 93,753
RAC: 0
Message 5997 - Posted: 9 Nov 2004, 18:51:56 UTC


I\'d like to run the BOINC client as a daemon automatically on bootup as described at
http://noether.vassar.edu/~myers/help/boinc/unix.html

Everything makes sense for me until I get to paragraph 4 at the end.

I understand that Debian (which Ubuntu is based on) has a different style of startup scripts from Red Hat, which is the example given on this page.

Can anybody advise what changes I need to make to the location/invocation of the startup script and to its contents in order to have BOINC run automatically when I bootup?
ID: 5997 · Report as offensive     Reply Quote
Natronomonas

Send message
Joined: 1 Sep 04
Posts: 6
Credit: 1,929,304
RAC: 0
Message 8662 - Posted: 5 Feb 2005, 7:00:27 UTC

why don't you run it as a cron job? this way, it will just start up every half hour (depending on how you configure the job) if it's not already running.
For me, this was easier than figuring out startup scripts, and works fine since my machine is hardly ever rebooted.

(If you were rebooting a lot, you would lose the 20 mins or whatever of crunching time before the cron job started, compared to startup, but for occasional reboots, the loss is minimal, and also means that if the process were to terminate for whatever reason while the PC was on, it is restarted automatically, instead of waiting for a reboot.)
ID: 8662 · Report as offensive     Reply Quote
old_user30025

Send message
Joined: 15 Nov 04
Posts: 19
Credit: 35,499
RAC: 0
Message 8726 - Posted: 6 Feb 2005, 12:04:45 UTC - in response to Message 8662.  

> why don't you run it as a cron job?

How do you prevent multiple instances of the program?

> For me, this was easier than figuring out startup scripts, and works fine
> since my machine is hardly ever rebooted.

Actually it is not that hard. I have it on a Debian machine and since Ubuntu is Debian-based I assume it should work likewise.

Just have a script in /etc/rcS.d/S80boinc.sh that cd`s into the desired directory and then executes boinc as the user you want it to. I am not sure if this is "the Debian way" to do it but it works fine here.
ID: 8726 · Report as offensive     Reply Quote

Questions and Answers : Unix/Linux : Running BOINC as daemon/auto-startup process on Ubuntu

©2024 climateprediction.net