<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Commenti a: Un perfetto P2P server con mldonkey</title>
	<atom:link href="http://www.0x01.org/blog/?feed=rss2&#038;p=22" rel="self" type="application/rss+xml" />
	<link>http://www.0x01.org/blog/?p=22</link>
	<description>Saggezza ICT in pillole quotidiane</description>
	<pubDate>Sun, 05 Sep 2010 03:30:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Di: Meg</title>
		<link>http://www.0x01.org/blog/?p=22&#038;cpage=1#comment-10</link>
		<dc:creator>Meg</dc:creator>
		<pubDate>Mon, 30 Oct 2006 09:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.0x01.org/blog/?p=22#comment-10</guid>
		<description>NOTA: con le ultime versioni distribuite nei Ports, viene installato anche un ottimo script di avvio quindi alcune parti di questo post non sono più attuali.
</description>
		<content:encoded><![CDATA[<p>NOTA: con le ultime versioni distribuite nei Ports, viene installato anche un ottimo script di avvio quindi alcune parti di questo post non sono più attuali.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Phil</title>
		<link>http://www.0x01.org/blog/?p=22&#038;cpage=1#comment-5</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Sun, 08 May 2005 13:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.0x01.org/blog/?p=22#comment-5</guid>
		<description>RC script for Linux

#!/bin/sh
#
# MLDonkey start/stop script - (c) 2005 Maurizio Giunti
#
# This is free software; you can redistribute it and/or modify
#
## BEGIN USER CONFIGURATION ##
#
# Set running directory and username (not root).
MLDONKEYDIR=/home/donkey/.mldonkey
USERNAME=donkey
#
## END USER CONFIGURATION ##




# Include funzioni bsd per la gestione dei servizi

status() {
STATUSPID=`pgrep -U donkey`
if [ -n "$STATUSPID" ];then
if [ `ps -p $STATUSPID &#124; wc -l` -eq 2 ]; then
echo "mldonkey (pid $STATUSPID) running..."
return 1
else
echo "Stale PID ???"
fi
fi
echo "mldonkey is not running"
return 0
}

start() {
# see if there is a mldonkey running
status
if [ $? = 0 ]; then
echo "Starting mldonkey"
cd $MLDONKEYDIR
# Remove old servers
rm -rf servers.ini*
# Remove tmp files
rm -rf *.tmp
# Run MLDonkey
su $USERNAME -c "nice -n 19 mlnet -daemon 2&gt; /dev/null"
fi
return 0
}

stop() {
STOPPID=`pgrep -U donkey`
status
if [ $? = 1 ]; then
echo "Stopping mldonkey"
kill $STOPPID
sleep 3
return 0
fi
return 1
}

case "$1" in
'status')
status ;;
'start')
start ;;
'stop')
stop ;;
'restart')
stop
start ;;
*)
echo "usage $0 start&#124;stop&#124;restart&#124;status"
exit 1 ;;
esac

exit $?</description>
		<content:encoded><![CDATA[<p>RC script for Linux</p>
<p>#!/bin/sh<br />
#<br />
# MLDonkey start/stop script - (c) 2005 Maurizio Giunti<br />
#<br />
# This is free software; you can redistribute it and/or modify<br />
#<br />
## BEGIN USER CONFIGURATION ##<br />
#<br />
# Set running directory and username (not root).<br />
MLDONKEYDIR=/home/donkey/.mldonkey<br />
USERNAME=donkey<br />
#<br />
## END USER CONFIGURATION ##</p>
<p># Include funzioni bsd per la gestione dei servizi</p>
<p>status() {<br />
STATUSPID=`pgrep -U donkey`<br />
if [ -n "$STATUSPID" ];then<br />
if [ `ps -p $STATUSPID | wc -l` -eq 2 ]; then<br />
echo &#8220;mldonkey (pid $STATUSPID) running&#8230;&#8221;<br />
return 1<br />
else<br />
echo &#8220;Stale PID ???&#8221;<br />
fi<br />
fi<br />
echo &#8220;mldonkey is not running&#8221;<br />
return 0<br />
}</p>
<p>start() {<br />
# see if there is a mldonkey running<br />
status<br />
if [ $? = 0 ]; then<br />
echo &#8220;Starting mldonkey&#8221;<br />
cd $MLDONKEYDIR<br />
# Remove old servers<br />
rm -rf servers.ini*<br />
# Remove tmp files<br />
rm -rf *.tmp<br />
# Run MLDonkey<br />
su $USERNAME -c &#8220;nice -n 19 mlnet -daemon 2&gt; /dev/null&#8221;<br />
fi<br />
return 0<br />
}</p>
<p>stop() {<br />
STOPPID=`pgrep -U donkey`<br />
status<br />
if [ $? = 1 ]; then<br />
echo &#8220;Stopping mldonkey&#8221;<br />
kill $STOPPID<br />
sleep 3<br />
return 0<br />
fi<br />
return 1<br />
}</p>
<p>case &#8220;$1&#8243; in<br />
&#8217;status&#8217;)<br />
status ;;<br />
&#8217;start&#8217;)<br />
start ;;<br />
&#8217;stop&#8217;)<br />
stop ;;<br />
&#8216;restart&#8217;)<br />
stop<br />
start ;;<br />
*)<br />
echo &#8220;usage $0 start|stop|restart|status&#8221;<br />
exit 1 ;;<br />
esac</p>
<p>exit $?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
