Questions and Answers :
Unix/Linux :
Running BOINC as daemon/auto-startup process on Ubuntu
Message board moderation
Author | Message |
---|---|
Send message Joined: 9 Nov 04 Posts: 11 Credit: 93,753 RAC: 0 |
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? |
Send message Joined: 1 Sep 04 Posts: 6 Credit: 1,929,304 RAC: 0 |
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.) |
Send message Joined: 15 Nov 04 Posts: 19 Credit: 35,499 RAC: 0 |
> 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. |
©2024 cpdn.org