Package: mldonkey-server
Version: 2.5.28-2
Severity: wishlist
Tags: patch
The pid file stays after some unusual ocasions not related to mldonkey, i.e: a
hard crash (really unusual :) . Next time mldonkey does not start because the
pid file exists, but no message is provided to the user, who has to guess the
issue and remove it manually.
Adding this to /etc/init.d/mldonkey_server solves the problem.
# Clean lost pid file
if [ -f "$PIDFILE" ]; then
MLDONKEY_PID=`cat $PIDFILE`
[ -f "/proc/${MLDONKEY_PID}/exe" ] && \
MLDONKEY_PID_EXE=`readlink /proc/${MLDONKEY_PID}/exe`
if [ "$MLDONKEY_PID_EXE" != $WRAPPER ]; then
echo "Removing $DESC lost pid file: $PIDFILE."
rm $PIDFILE
fi
fi
Please note this is not the same that removing .tmp files. These .tmp files
stop mlnet but a) user can see this in /var/log/messages, and b) the .tmp
files can store sensible info about mlnet state before its unusual stop.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-k7
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) (ignored:
LC_ALL set to es_ES.UTF-8)
Versions of packages mldonkey-server depends on:
ii adduser 3.59 Add and remove users and groups
ii debconf [debconf-2.0] 1.4.41 Debian configuration management sy
ii libc6 2.3.2.ds1-19 GNU C Library: Shared libraries an
ii mime-support 3.28-1 MIME files 'mime.types' & 'mailcap
ii ucf 1.13 Update Configuration File: preserv
ii zlib1g 1:1.2.2-4 compression library - runtime
-- debconf information excluded
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]