Hello, On Tue, Feb 01, 2005 at 09:24:50AM -0500, Brian White wrote: > 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="" >
OK, thanks for the patch. Regard Sylvain Le Gall -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]