|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: May 2002
Città: Nardo' (LE)
Messaggi: 4018
|
Azureus in modalita' testo
Sto cercando di avviare Azureus in modalita' "demone" su Gentoo, come ho gia' fatto con aMule, solo che non riesco a farlo partire in automatico al boot!
In pratica vorrei che si avviasse come demone, al pari di proftpd o amuled, senza bisogno di fare alcun login (il server e' sprovvisto di monitor e tastiera ed e' controllato tramite putty e, fino a poco fa, VNC), ma non c'e' verso! Tra i vari tentativi, ho trovato questo script: Codice:
#! /bin/sh #The user that will run Azureus AZ_USER=jabberwock #Name of the screen-session NAME=azureus_screen #executable files in the following paths that are perhaps needed by the script PATH=/bin:/usr/bin:/sbin:/usr/sbin:/home/azureus/bin #your path to the azureus directory, where Azureus2.jar is located DIR=/home/jabberwock/Applicazioni/azureus #Description DESC="Azureus screen daemon" case "$1" in start) if [[ `su $AZ_USER -c "screen -ls |grep $NAME"` ]] then echo "Azureus is already running!" else echo "Starting $DESC: $NAME" su $AZ_USER -c "cd $DIR; screen -dmS $NAME java -jar ./Azureus2.jar --ui=console" fi ;; stop) if [[ `su $AZ_USER -c "screen -ls |grep $NAME"` ]] then echo -n "Stopping $DESC: $NAME" su $AZ_USER -c "screen -X quit" echo " ... done." else echo "Coulnd't find a running $DESC" fi ;; restart) if [[ `su $AZ_USER -c "screen -ls |grep $NAME"` ]] then echo -n "Stopping $DESC: $NAME" su $AZ_USER -c "screen -X quit" echo " ... done." else echo "Coulnd't find a running $DESC" fi echo "Starting $DESC: $NAME" su $AZ_USER -c "cd $DIR; screen -dmS $NAME java -jar ./Azureus2.jar --ui=console" echo " ... done." ;; status) if [[ `su $AZ_USER -c "screen -ls |grep $NAME"` ]] then echo "Azureus is RUNNING" else echo "Azureus is DOWN" fi ;; *) echo "Usage: $0 {start|stop|status|restart}" exit 1 ;; esac exit 0 Usage: $PATH$/azureus_start {start|stop|status|restart} dove $PATH$ e' il percorso per azureus_start (il nome dato allo script)! Siccome di script non so nulla, c'e' modo di modificarlo per farlo andare? P.S. Il risultato e' lo stesso cercando di avviare manualmente quello script! |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 11:17.