8 BOINCDIR
="/var/lib/boinc"
9 PID
=`pidof -o %PPID /usr/bin/boinc_client`
12 echo "Enter the Project URL: "
14 echo "Enter your Account Key: "
16 echo "Attaching to project"
18 su
$BOINCUSER -c "boinccmd --project_attach $url $key"
21 stat_busy
"Starting boinc"
22 if [ -z "$PID" ]; then
23 su
$BOINCUSER -c "nice -n 19 /usr/bin/boinc_client --daemon --dir ${BOINCDIR} --redirectio"
35 stat_busy
"Stopping boinc"
36 [ ! -z "$PID" ] && kill $PID &> /dev
/null
50 echo "usage: $0 {attach|start|stop|restart}"