Bug#491083: init script fails stopping mini-httpd when pidfile is defined in the config file

2008-07-17 Thread Marvin Stark
tags 491083 +confirmed +pending
fixed 491083 1.19-9
thanks

On Wednesday 16 July 2008 15:39:18 Steffen Grunewald wrote:
 Package: mini-httpd
 Version: 1.19-3
 Severity: normal


 This may be a re-open of a previous bug (387941).

 /etc/init.d/mini-httpd does not know about an alternative placement of the
 pidfile, forced by a /etc/mini-httpd.conf entry. Therefore the stop part
 of the script may fail to actually end the running daemon.

 Since the test for [ -e /var/run/$NAME/pid ] would fail in such a setup,
 the addition of an else branch, with start-stop-daemon --name $NAME
 would fix this, at the expense of a Terminated message that destroys
 the output formatting :(

 pseudo-diff
 else
 start-stop-daemon --stop --quiet --name $NAME
 /pseudo-diff

Hi,

thanks for this bug report.
This bug will be fixed in the next upload of mini-httpd.

Cheers,
-- 
 .`. Marvin Stark [EMAIL PROTECTED]
: :  :Homepage: www.der-marv.de
`. ``
  `-  Debian - when you have better things to do than fix a system


signature.asc
Description: This is a digitally signed message part.


Bug#491083: init script fails stopping mini-httpd when pidfile is defined in the config file

2008-07-16 Thread Steffen Grunewald
Package: mini-httpd
Version: 1.19-3
Severity: normal


This may be a re-open of a previous bug (387941).

/etc/init.d/mini-httpd does not know about an alternative placement of the
pidfile, forced by a /etc/mini-httpd.conf entry. Therefore the stop part
of the script may fail to actually end the running daemon.

Since the test for [ -e /var/run/$NAME/pid ] would fail in such a setup,
the addition of an else branch, with start-stop-daemon --name $NAME
would fix this, at the expense of a Terminated message that destroys
the output formatting :(

pseudo-diff
else
start-stop-daemon --stop --quiet --name $NAME
/pseudo-diff

BTW, the need to set START to *0* in /etc/default/mini-httpd is confusing
at least. (well, that's fixed in -6..., #454230, time to move on to Lenny) 

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: arm (armv5tel)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-ixp4xx
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages mini-httpd depends on:
ii  libc6  2.3.6.ds1-13etch5 GNU C Library: Shared libraries
ii  libssl0.9.80.9.8c-4etch3 SSL shared libraries

mini-httpd recommends no packages.

-- no debconf information



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