Package: thttpd
Version: 2.23beta1-5
Severity: important

The grep-commands in 'ps ax | grep -q "^$PID"' in /etc/init.d/thttpd is
wrong. Since the process-numbers in the first column of "ps ax" are
right-aligned, this command often doesn't find the process-number.

This results in wrongly reporting that thttpd is not running, and
so starting/stopping/restarting/etc. sometimes does not work.
Additionally, in combination with logrotate, thttpd is not restarted
after logfile-rotation, which causes thttpd to write its logs to a
deleted file.

Solution:
The problem can be solved by replacing the above grep-command each
time it appears in /etc/init.d/thttpd by:
'ps ax | grep -q "^ *$PID"'


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'oldstable'), (60, 'testing'), (50, 
'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages thttpd depends on:
ii  libc6                         2.7-14     GNU C Library: Shared libraries
ii  logrotate                     3.7.1-3    Log rotation utility

thttpd recommends 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