Your message dated Sun, 02 Mar 2008 13:14:20 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#453636: fixed in lsb 3.2-1
has caused the Debian Bug report #453636,
regarding lsb-base: killproc() _ALWAYS_ remove daemon's pidfile
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.)


-- 
453636: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=453636
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: lsb-base
Version: 3.1-23.1
Severity: important
Tags: patch

Problem example:
I wish to send a signal SIGHUP or SIGUSR1 to a daemon the "MyDaemon" from 
init.d startup scripts
    killproc -p "$pidfile" MyDaemon SIGHUP
init-function:killproc() remove daemon's pidfile

--- init-functions.orig 2007-11-30 13:07:54.000000000 +0300
+++ init-functions      2007-11-30 13:16:23.000000000 +0300
@@ -95,9 +95,10 @@

 # start-stop-daemon uses the same algorithm as "pidofproc" above.
 killproc () {
-    local pidfile sig status base i name_param
+    local pidfile sig status base i name_param is_term_sig
     pidfile=
     name_param=
+    is_term_sig=no

     OPTIND=1
     while getopts p: opt ; do
@@ -115,18 +116,19 @@

     sig=$(echo ${2:-} | sed -e 's/^-\(.*\)/\1/')
     sig=$(echo $sig | sed -e 's/^SIG\(.*\)/\1/')
-    if [ -n "$sig" ]; then
+    [ -n "$sig" -o "$sig" = 15 -o "$sig" = TERM ] && is_term_sig=yes
+    if [ ! "$is_term_sig" = yes ]; then
         /sbin/start-stop-daemon --stop --pidfile "$pidfile" --signal "$sig" 
--quiet $name_param
     else
         /sbin/start-stop-daemon --stop --pidfile "$pidfile" --retry 5 --quiet 
--oknodo $name_param
     fi
     status="$?"
-    if [ "$status" = 1 ]; then
-        [ -n "$sig" ] && return 0
+    if [ "$status" = 1 ]; then # FIXME if status > 1 ?
+        [ -n "$sig" ] && return 0 # FIXME Why return success result always ?
         return 3 # program is not running
     fi

-    rm -f "$pidfile"
+    [ "$status" = 0 -a "$is_term_sig" = yes ] && rm -f "$pidfile"
     return 0
 }


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

Versions of packages lsb-base depends on:
ii  ncurses-bin                   5.5-5      Terminal-related programs and man 
ii  sed                           4.1.5-1    The GNU sed stream editor

lsb-base recommends no packages.



--- End Message ---
--- Begin Message ---
Source: lsb
Source-Version: 3.2-1

We believe that the bug you reported is fixed in the latest version of
lsb, which is due to be installed in the Debian FTP archive:

lsb-base_3.2-1_all.deb
  to pool/main/l/lsb/lsb-base_3.2-1_all.deb
lsb-core_3.2-1_amd64.deb
  to pool/main/l/lsb/lsb-core_3.2-1_amd64.deb
lsb-cxx_3.2-1_amd64.deb
  to pool/main/l/lsb/lsb-cxx_3.2-1_amd64.deb
lsb-desktop_3.2-1_amd64.deb
  to pool/main/l/lsb/lsb-desktop_3.2-1_amd64.deb
lsb-graphics_3.2-1_amd64.deb
  to pool/main/l/lsb/lsb-graphics_3.2-1_amd64.deb
lsb-languages_3.2-1_amd64.deb
  to pool/main/l/lsb/lsb-languages_3.2-1_amd64.deb
lsb-multimedia_3.2-1_amd64.deb
  to pool/main/l/lsb/lsb-multimedia_3.2-1_amd64.deb
lsb-printing_3.2-1_amd64.deb
  to pool/main/l/lsb/lsb-printing_3.2-1_amd64.deb
lsb-qt4_3.2-1_amd64.deb
  to pool/main/l/lsb/lsb-qt4_3.2-1_amd64.deb
lsb-release_3.2-1_all.deb
  to pool/main/l/lsb/lsb-release_3.2-1_all.deb
lsb_3.2-1.dsc
  to pool/main/l/lsb/lsb_3.2-1.dsc
lsb_3.2-1.tar.gz
  to pool/main/l/lsb/lsb_3.2-1.tar.gz
lsb_3.2-1_all.deb
  to pool/main/l/lsb/lsb_3.2-1_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Lawrence <[EMAIL PROTECTED]> (supplier of updated lsb package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 02 Mar 2008 02:13:58 -0600
Source: lsb
Binary: lsb-core lsb-graphics lsb-cxx lsb-desktop lsb-qt4 lsb-languages 
lsb-multimedia lsb-printing lsb lsb-base lsb-release
Architecture: source all amd64
Version: 3.2-1
Distribution: unstable
Urgency: low
Maintainer: Chris Lawrence <[EMAIL PROTECTED]>
Changed-By: Chris Lawrence <[EMAIL PROTECTED]>
Description: 
 lsb        - Linux Standard Base 3.2 support package
 lsb-base   - Linux Standard Base 3.2 init script functionality
 lsb-core   - Linux Standard Base 3.2 core support package
 lsb-cxx    - Linux Standard Base 3.2 C++ support package
 lsb-desktop - Linux Standard Base 3.2 Desktop support package
 lsb-graphics - Linux Standard Base 3.2 graphics support package
 lsb-languages - Linux Standard Base 3.2 Runtime Languages package
 lsb-multimedia - Linux Standard Base 3.2 Multimedia package
 lsb-printing - Linux Standard Base 3.2 Printing package
 lsb-qt4    - Linux Standard Base 3.2 Qt4 support package
 lsb-release - Linux Standard Base version reporting utility
Closes: 427221 439402 447184 451532 453636 454352 462757 463082 468670
Changes: 
 lsb (3.2-1) unstable; urgency=low
 .
   * New LSB version.
     + Add libpam0g, libncurses5 to lsb-base.
     + Add libqt4-gui, libfreetype6, libxrender1, libxft2 to lsb-desktop.
     + lsb-qt4 appears to be deprecated by the new lsb-desktop requirements.
     + Add new printing, multimedia, and languages modules.
   * More killproc() fixes.  (Closes: #453636)
   * Use /etc/debian_version in preference to apt autodetection.
     (Closes: #427221)
   * Handle non-zero status from start-stop-daemon better.  (Closes: #451532)
   * All fancy output uses /bin/echo -e now.  (Closes: #463082)
   * Add/update translations:
       fi (Closes: #447184)
       ro (Closes: #468670)
       ja (Closes: #462757)
       pt (Closes: #439402)
   * Ignore invalid lines in /etc/lsb-release.  (Closes: #454352)
Files: 
 1cd1951aae7f706647fc3fc25c1bbb10 764 misc extra lsb_3.2-1.dsc
 76d485b5e1e404701763a1bf8274ce1b 48535 misc extra lsb_3.2-1.tar.gz
 b060647228a8cc1983b0f12074d591f7 11862 misc extra lsb_3.2-1_all.deb
 15b68a532195083ff0a412f2b1610b05 17246 misc required lsb-base_3.2-1_all.deb
 941341073341742523e235c0f78d8e27 17378 misc extra lsb-release_3.2-1_all.deb
 788f715a6735fef9b6175e777bc6c608 34264 misc extra lsb-core_3.2-1_amd64.deb
 f3dc988e2806ca008b4dc9f270094e57 11898 misc extra lsb-graphics_3.2-1_amd64.deb
 a8f4e96d4fe89916897b26c4ad66a710 11866 misc extra lsb-cxx_3.2-1_amd64.deb
 58639c58bc3de4e50c474a10665a94d5 11988 misc extra lsb-desktop_3.2-1_amd64.deb
 44e394dcdef0f34e2785b233276ac6ab 11932 misc extra lsb-qt4_3.2-1_amd64.deb
 e6a7587ba3e1229c6c14d1c77c056704 11894 misc extra lsb-languages_3.2-1_amd64.deb
 dc462f7ab62c05835532ce4ffe793c24 11868 misc extra 
lsb-multimedia_3.2-1_amd64.deb
 157dbc0a9a0b20507b7d866e27ef876c 11892 misc extra lsb-printing_3.2-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHyml72wQKE6PXubwRAlwhAJ0YI6z4yf44b5G//tG2DppDRtbZdgCeLtzn
knReefVjouVvf4zgJA6Yogw=
=C6tl
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to