Create a Service??

Questions and Answers : Unix/Linux : Create a Service??
Message board moderation

To post messages, you must log in.

AuthorMessage
paranoid

Send message
Joined: 6 Sep 03
Posts: 2
Credit: 43,509
RAC: 0
United States
Message 26210 - Posted: 14 Sep 2004, 2:42:40 UTC

Hi, I am very new to linux, but not to SETI. I converted one of my SETI rigs to a linux box and currently have SETI running. I would like SETI to start on boot...I looked around and it appears I want it to be a "service" ???
I found a script and downloaded it and followed the directions but when I issued the command:

service boinc start

it says FAILED...

can anyone help me???
ID: 26210 · Report as offensive
paranoid

Send message
Joined: 6 Sep 03
Posts: 2
Credit: 43,509
RAC: 0
United States
Message 26320 - Posted: 14 Sep 2004, 10:21:42 UTC - in response to Message 26223.  

> Have you started boinc manually from the command line and attached to a
> project before trying the service script?
>
> Can you post a link to the script? It's hard to offer much help if nobody
> knows what script you're using.
>

yes i have started boinc from the command line and attached the project before trying the script.

http://noether.vassar.edu/~myers/help/boinc/unix.html

look at step 4, the link to the script is in there.

thanks for the help!
ID: 26320 · Report as offensive
HOAP
Volunteer tester
Avatar

Send message
Joined: 11 May 01
Posts: 35
Credit: 28,021
RAC: 0
Sweden
Message 26361 - Posted: 14 Sep 2004, 12:52:44 UTC

That script will only work with Red Hat (perhaps some others but every distribution has its own way of doing things)

Take a look around the forum, you're not the first that asked this question...
ID: 26361 · Report as offensive
Phil Wieland

Send message
Joined: 9 Aug 00
Posts: 47
Credit: 748,038
RAC: 0
United Kingdom
Message 26516 - Posted: 14 Sep 2004, 22:27:55 UTC

I use a crontab entry to achieve this:

First make a simpler file name for boinc by typing

ln -s boinc_4.05_i686-pc-linux-gnu go

(When a new version of boinc comes out you only have to change this symbolic link.)

Then add the following line to your crontab:

13 13 * * * cd /home/webserve/boinc; exec ./go >>go.log 2>/dev/null

Modify the directory as appropriate.

If you often shut down the machine you might want to change the crontab so it tries every few hours instead of once a day.

All the other good advice about making sure the user can execute boinc still applies, of course.


Phil
<BR>Liverpool, UK
<BR>
ID: 26516 · Report as offensive

Questions and Answers : Unix/Linux : Create a Service??


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.