Package: fam
Version: 2.7.0-14
Severity: minor
Tags: patch

Hi,

The current init script always reports it fails before actually starting
FAM. This is because the status is checked when starting, and if FAM is
not already started, lsb will logs a failure message.

Here is a short patch "fixing" this:
--- /etc/init.d/fam.orig        2009-07-29 19:59:50.000000000 +0200
+++ /etc/init.d/fam             2009-07-29 19:59:14.000000000 +0200
@@ -27,7 +27,7 @@
 
 case "$1" in
   start)
-       status_of_proc $DAEMON $NAME && exit 0
+       status_of_proc $DAEMON $NAME >/dev/null && exit 0
        log_daemon_msg "Starting $DESC" "$NAME"
        start-stop-daemon --start --quiet --exec $DAEMON -- $FAMOPTS < /dev/null
        log_end_msg $?


However, I think it would be much better informing the user what's happening.
Something like
        Starting File Alteration Monitor: FAM already running ... (warning)

Cheers,
Julien

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (150, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages fam depends on:
ii  libc6                         2.9-23     GNU C Library: Shared libraries
ii  libgcc1                       1:4.4.1-1  GCC support library
ii  libstdc++6                    4.4.1-1    The GNU Standard C++ Library v3
ii  lsb-base                      3.2-23     Linux Standard Base 3.2 init scrip
ii  portmap                       6.0-10     RPC port mapper
ii  update-inetd                  4.31       inetd configuration file updater

fam recommends no packages.

fam 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