|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Jun 2005
Città: Nola (NA)
Messaggi: 517
|
BOINC@linux... init script che non va più
Salve a tutti... spero qualcuno mi possa aiutare... uso questo script per far partire boinc_client direttamente all'avvio, ma non so perchè, dopo l'ultimo aggiornamento, non ne vuole più sapere di funzionare:
Codice:
#!/sbin/runscript # # Gentoo Linux start/stop script to run the BOINC client as a daemon # at system startup, as the boinc user (not root). # # chkconfig: 345 71 29 # description: start boinc client at boot time # processname: boinc # config: /etc/sysconfig/boinc # # Gabor Nagy <nagyga1 at netscape.net> - 18 January 2005 # # Based on the original Redhat Linux start/stop scrip by: # Eric Myers <myers at vassar.edu> - 27 July 2004 # Department of Physics and Astronomy, Vassar College, Poughkeepsie NY # @(#) $Revision: 1.5 $ -- $Date: 2004/07/27 14:43:24 $ #PATH=/sbin:/bin:/usr/sbin:/usr/bin #export PATH # Source function library. #. /etc/rc.d/init.d/functions # Defaults, which can be overridden by /etc/sysconfig/boinc BOINCUSER=redirect BOINCDIR=/home/redirect/boinc #BUILD_ARCH=i686-pc-linux-gnu LOGFILE=boinc.log ERRORLOG=error.log #BOINCOPTS="-allow_remote_gui_rpc" if [ -f /etc/sysconfig/boinc ]; then . /etc/sysconfig/boinc fi ## Locate the working directory if [ ! -d $BOINCDIR ]; then echo "Cannot find boinc directory $BOINCDIR " exit 1 fi ## Locate the executable with highest version #BOINCEXE=`/bin/ls -1 $BOINCDIR/boinc_*_$BUILD_ARCH 2>/dev/null | tail -n 1 ` BOINCEXE=$BOINCDIR/boinc_client if [ ! -x "$BOINCEXE" ]; then echo "Cannot find/run boinc executable $BOINCEXE " exit 2 fi ## Functions: start/stop/status/restart checkconfig() { cd $BOINCDIR if [ ! -f client_state.xml ] ; then eerror "BOINC client requires initialization first." return 1 fi } start() { checkconfig || return 1 ebegin "Starting BOINC client as a daemon: " start-stop-daemon --start --quiet --chuid $BOINCUSER --exec $BOINCEXE -- $BOINCOPTS >>$BOINCDIR/$LOGFILE 2>>$BOINCDIR/$ERRORLOG & eend $? } stop() { ebegin "Stopping boinc client daemon" start-stop-daemon --stop --quiet --retry 20 --exec $BOINCEXE eend $? } restart() { $0 stop $0 start eend $? } Codice:
gentoomachine redirect # start-stop-daemon --start --quiet --chuid redirect --exec /home/redirect/boinc/boinc_client Another instance of BOINC is running
__________________
{ Intel Core i7 4790K Cooled By Corsair H100i - MSI Z97i Gaming AC (mITX) - MSI N770 TF 2GD5/OC - 2x8 GB G.Skill F3-2400C10D-16GTX - Corsair RM750 750W - Corsair Obsidian 250D - 2x256GB SSD Samsung 850 PRO }. Ultima modifica di ReDirEct__ : 21-08-2006 alle 12:53. |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 14:32.