[arch-commits] Commit in boinc/trunk (boinc.rc)
Felix Yan
fyan at nymeria.archlinux.org
Sat Apr 20 02:26:32 UTC 2013
Date: Saturday, April 20, 2013 @ 04:26:32
Author: fyan
Revision: 88565
remove boinc.rc
Deleted:
boinc/trunk/boinc.rc
----------+
boinc.rc | 52 ----------------------------------------------------
1 file changed, 52 deletions(-)
Deleted: boinc.rc
===================================================================
--- boinc.rc 2013-04-20 02:26:08 UTC (rev 88564)
+++ boinc.rc 2013-04-20 02:26:32 UTC (rev 88565)
@@ -1,52 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-
-BOINCUSER="boinc"
-BOINCDIR="/var/lib/boinc"
-PID=`pidof -o %PPID /usr/bin/boinc_client`
-case "$1" in
- attach)
- echo "Enter the Project URL: "
- read url
- echo "Enter your Account Key: "
- read key
- echo "Attaching to project"
- cd $BOINCDIR
- su $BOINCUSER -c "boinccmd --project_attach $url $key"
-;;
- start)
- stat_busy "Starting boinc"
- if [ -z "$PID" ]; then
- su $BOINCUSER -c "nice -n 19 /usr/bin/boinc_client --daemon --dir ${BOINCDIR} --redirectio"
- else
- false
- fi
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon boinc
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping boinc"
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon boinc
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 2
- $0 start
- ;;
- *)
- echo "usage: $0 {attach|start|stop|restart}"
-esac
-exit 0
More information about the arch-commits
mailing list