Package:  timidity-daemon
Version:  2.13.2-37
Severity: important
Tags:     patch
User:     initscripts-ng-de...@lists.alioth.debian.org
Usertags: runtime-problem

I discovered this because the parallel boot in Debian leave a startpar
processes behind when a service fail to close its file descriptors.
Timidity is one such service:

r...@tjener:/etc# ps -ef|grep [t]imi
timidity 11489     1  0 08:20 pts/0    00:00:00 /usr/bin/timidity -Os -iAD
r...@tjener:/etc# ls -l /proc/11489/fd
totalt 0
lrwx------ 1 timidity timidity 64 17 mai   08:20 0 -> /dev/pts/0
l-wx------ 1 timidity timidity 64 17 mai   08:20 1 -> /dev/null
lrwx------ 1 timidity timidity 64 17 mai   08:20 2 -> /dev/pts/0
lrwx------ 1 timidity timidity 64 17 mai   08:20 3 -> /dev/snd/seq
r...@tjener:/etc#

I propose this patch to fix it.  A better way would be for timidity to
close the file descriptors on its own, and log any messages to syslog
when started at boot (if this is implemented, remember to add $syslog
as a init.d script dependency to start the script after syslog),
instead of printing to stdout or stderr.

--- a/init.d/timidity
+++ b/init.d/timidity
@@ -72,7 +72,7 @@ case "$1" in
        log_begin_msg "Starting $DESC..."
     mkdir -p /var/run/timidity
     chown timidity /var/run/timidity
-       if start-stop-daemon ${START} >/dev/null; then
+       if start-stop-daemon ${START} </dev/null >/dev/null 2>&1 ; then
                log_end_msg 0
        else
                log_end_msg 1

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-3-686 (SMP w/1 CPU core)
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages timidity-daemon depends on:
ii  adduser                       3.112      add and remove users and groups
ii  timidity                      2.13.2-37  Software sound renderer (MIDI sequ

timidity-daemon recommends no packages.

timidity-daemon suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to