Package: bittorrent
Version: 3.4.2-6
Severity: normal
Tags: patch

When starting the tracker with the supplied initscript, the log isn't written 
at all.

Attached patch uses bttrack option --logfile.

Thanks.


---8<---
--- /etc/init.d/bittorrent~     2005-11-30 04:33:16.000000000 +0100
+++ /etc/init.d/bittorrent      2006-06-01 14:55:32.000000000 +0200
@@ -14,6 +14,7 @@
 
 PORT=6969
 DFILE=/var/lib/bittorrent/bttrack.state
+DAEMONLOGFILE=/var/log/bttrack.bittorrent.log
 
 # Read config file if it is present.
 if [ -r /etc/default/bittorrent ]
@@ -45,6 +46,7 @@
 add_opt --allowed_dir "$ALLOWED_DIR"
 add_opt --parse_allowed_interval "$PARSE_ALLOWED_INTERVAL"
 add_opt --show_names "$SHOW_NAMES"
+add_opt --logfile "$DAEMONLOGFILE"
 DAEMONOPTS="$OPTS"
 
 # Add arguments for start-stop-daemon, based on variables set in
@@ -56,12 +58,6 @@
 add_opt --nicelevel "$DAEMONNICE"
 METAOPTS="$OPTS"
 
-# Set log directory.  This takes some extra magic since the messages go through
-# stdout.
-if test -z "$DAEMONLOGFILE" ; then
-DAEMONLOGFILE=/var/log/bttrack.bittorrent.log
-fi
-
 #
 #Function that starts the daemon/service.
 #
@@ -69,7 +65,7 @@
 start-stop-daemon --start --background --quiet \
 --make-pidfile --pidfile "$PIDFILE" \
 $METAOPTS \
---exec $DAEMON -- $DAEMONOPTS >>"$DAEMONLOGFILE"
+--exec $DAEMON -- $DAEMONOPTS
 }
 
 #
--->8---


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.17
Locale: LANG=es_ES.ISO-8859-15, LC_CTYPE=es_ES.ISO-8859-15 
(charmap=ISO-8859-15) (ignored: LC_ALL set to [EMAIL PROTECTED])

Versions of packages bittorrent depends on:
ii  python                        2.3.5-5    An interactive high-level object-o

Versions of packages bittorrent recommends:
ii  mime-support                  3.36-1     MIME files 'mime.types' & 'mailcap

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to