Source: mldonkey-server Version: 3.1.2 Severity: normal Tags: patch See the following upstream bugs : https://savannah.nongnu.org/bugs/?31021 https://savannah.nongnu.org/bugs/?37003
MLDonkey outputs startup errors to stderr, before opening the logfile. Debian init script starts mlnet via start-stop-daemon, effectively discarding all stderr output. As a result any startup errors leave the user guessing what was the reason of the failure without any traces.. AFAIK other distros redirect mldonkey output to the log, and this problem is avoided. See the proposed patch (lightly tested) : diff --git a/debian/mldonkey-server.init b/debian/mldonkey-server.init index c5f8901..c190f06 100644 --- a/debian/mldonkey-server.init +++ b/debian/mldonkey-server.init @@ -130,8 +130,8 @@ case "$1" in WRAPPER_OPTIONS="$WRAPPER_OPTIONS --user $USER" start-stop-daemon --start $WRAPPER_OPTIONS \ - --pidfile $PIDFILE --background --exec $EXEC \ - -- -log_file $SERVERLOG -pid $PIDDIR 2>&1 + --pidfile $PIDFILE --background --no-close --exec $EXEC \ + -- -log_file $SERVERLOG -pid $PIDDIR >>$SERVERLOG 2>&1 StartErrorCheck -- System Information: Debian Release: 7.0 APT prefers stable APT policy: (990, 'stable'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.7-trunk-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org