Codice: Seleziona tutto
netstat -nap | grep mldonkey | grep LISTEN
netstat -nap | grep mldonkey | grep udpModeratore: Staff

Codice: Seleziona tutto
netstat -nap | grep mldonkey | grep LISTEN
netstat -nap | grep mldonkey | grep udp
Codice: Seleziona tutto
darkstar:~# netstat -nap | grep mldonkey | grep LISTEN
darkster:~# netstat -nap | grep mldonkey | grep udp
udp 0 0 0.0.0.0:32814 0.0.0.0:* 4486/kmldonkey





Codice: Seleziona tutto
MLNET_USER="utente_per_privilegi_non_root"
# Opzional. Leave blank for the default values.
MLNET_ADMIN_PASSWORD=""
MLNET_DIR="/home/dir/.mldonkey" << dir di mldonkey. nota che serve solo per killare mlnet senza errori. non modifica la reale dir di mldonkey. essa sarà in $MLNET_USER/.mldonkey se non sbaglio
MLNET_NICE="10" <<priorità
Codice: Seleziona tutto
if [ -e "$MLNET_DIR/mlnet.pid" ]; then
if [ -z `ps aux|grep mlnet|grep -v "grep"` ]; then
rm $MLNET_DIR/mlnet.pid
echo "MLDonkey was not shut down properly."
else
echo "MLDonkey already started!"
exit 1
fi
fi
