Package: mldonkey-server
Version: 2.5.28-2
Tags: patch
I found two problems with the init.d script.
- a typo had MDLONKEY instead of MLDONKEY
- the pid file was not writeable if running as user other than root
Here's a patch to connect both of those problems:
--- mldonkey-server.orig 2005-02-01 08:59:34.000000000 -0500
+++ /etc/init.d/mldonkey-server 2005-02-01 09:16:30.000000000 -0500
@@ -31,7 +31,7 @@
fi
if [ ! -d $MLDONKEY_DIR ]; then
- if [ -z "$MDLONKEY_DIR" ]; then
+ if [ -z "$MLDONKEY_DIR" ]; then
MLDONKEY_DIR="(unset)"
fi
echo "$MLDONKEY_DIR is not a valid directory"
@@ -54,6 +54,12 @@
USER=`/usr/bin/stat --format="%U" $MLDONKEY_DIR/downloads.ini`
+PIDDIR=`dirname $PIDFILE`
+if [ ! -d $PIDDIR ]; then
+ mkdir -m755 $PIDDIR
+fi
+chown -R $USER $PIDDIR
+
START_STOP_OPTIONS=""
Brian
( [EMAIL PROTECTED] )
-------------------------------------------------------------------------------
"I don't believe it!" -- LS "That is why you fail." -- Yoda
-------------------------------------------------------------------------------
( Couldn't verify my signature? Use http://www.precidia.com/precidia.crt )
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]