Your message dated Mon, 15 Dec 2008 12:11:53 +0100
with message-id <[email protected]>
and subject line Re: Bug#508778: /etc/init.d/thttpd: grep for PID is wrong
has caused the Debian Bug report #508778,
regarding /etc/init.d/thttpd: grep for PID is wrong
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
508778: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508778
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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



--- End Message ---
--- Begin Message ---
Version: 2.25b-5

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          [email protected]
Internet:       http://people.panthera-systems.net/~daniel-baumann/


--- End Message ---

Reply via email to