Your message dated Fri, 18 May 2012 10:32:41 +0000
with message-id <[email protected]>
and subject line Bug#673387: fixed in lsyncd 2.0.7-2
has caused the Debian Bug report #673387,
regarding lsyncd init script stores the wrong PID in /var/run/lsyncd.pid so 
cannot stop it
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.)


-- 
673387: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673387
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lsyncd
Version: 2.0.7-1
Severity: important

When lsyncd starts by default it forks a child to do the work, and the parent 
exits.

This does not work with the init script as supplied in the debain package,
as start-stop-daemon is recording the PID of the process it started, instead of 
the
PID of the forked of worker.

lsyncd has a -pidfile <filename> command line option. I have hacked the init 
script
on my install to add that cmd line option so it is now correctly storing the 
PID.
(hacked script is attached)

NB: I am running Debian 6.0 Squeeze, but I installed the latest lsyncd from 
Wheezey
to get the latest version. I don't think using the wrong version for the distro 
will
affect this bug, but it might.

-- System Information:
Debian Release: 6.0.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.32-5-kirkwood
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lsyncd depends on:
ii  libc6                         2.11.3-3   Embedded GNU C Library: Shared lib
ii  liblua5.1-0                   5.1.4-5    Simple, extensible, embeddable pro
ii  lua5.1                        5.1.4-5    Simple, extensible, embeddable pro
ii  rsync                         3.0.7-2    fast remote file copy program (lik

lsyncd recommends no packages.

lsyncd suggests no packages.

-- Configuration Files:
/etc/init.d/lsyncd changed:
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="synchronization daemon"
NAME=lsyncd
DAEMON=/usr/bin/$NAME
CONFIG=/etc/lsyncd/lsyncd.conf.lua
PIDFILE=/var/run/$NAME.pid
DAEMON_ARGS="-pidfile ${PIDFILE} ${CONFIG}"
SCRIPTNAME=/etc/init.d/$NAME
[ -x "$DAEMON" ] || exit 0
[ -r "$CONFIG" ] || exit 0
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
. /lib/init/vars.sh
. /lib/lsb/init-functions
do_start()
{
        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \
        --test > /dev/null \
                || return 1
        start-stop-daemon --start --quiet --make-pidfile --pidfile $PIDFILE \
        --exec $DAEMON -- \
                $DAEMON_ARGS \
                || return 2
}
do_stop()
{
        start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $NAME
        RETVAL="$?"
        [ "$RETVAL" = 2 ] && return 2
        start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
        [ "$?" = 2 ] && return 2
        # Many daemons don't delete their pidfiles when they exit.
        rm -f $PIDFILE
        return "$RETVAL"
}
do_reload() {
        start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name 
$NAME
        return 0
}
case "$1" in
  start)
        [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
        do_start
        case "$?" in
                0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
                2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
        esac
        ;;
  stop)
        [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
        do_stop
        case "$?" in
                0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
                2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
        esac
        ;;
  status)
        status_of_proc $DAEMON $NAME && exit 0 || exit $?
        ;;
  restart|force-reload)
        log_daemon_msg "Restarting $DESC" "$NAME"
        do_stop
        case "$?" in
          0|1)
                do_start
                case "$?" in
                        0) log_end_msg 0 ;;
                        1) log_end_msg 1 ;; # Old process is still running
                        *) log_end_msg 1 ;; # Failed to start
                esac
                ;;
          *)
                # Failed to stop
                log_end_msg 1
                ;;
        esac
        ;;
  *)
        echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
        exit 3
        ;;
esac
:


-- no debconf information



--- End Message ---
--- Begin Message ---
Source: lsyncd
Source-Version: 2.0.7-2

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

lsyncd_2.0.7-2.debian.tar.gz
  to main/l/lsyncd/lsyncd_2.0.7-2.debian.tar.gz
lsyncd_2.0.7-2.dsc
  to main/l/lsyncd/lsyncd_2.0.7-2.dsc
lsyncd_2.0.7-2_amd64.deb
  to main/l/lsyncd/lsyncd_2.0.7-2_amd64.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.
Jan Dittberner <[email protected]> (supplier of updated lsyncd 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: SHA256

Format: 1.8
Date: Fri, 18 May 2012 12:23:25 +0200
Source: lsyncd
Binary: lsyncd
Architecture: source amd64
Version: 2.0.7-2
Distribution: unstable
Urgency: low
Maintainer: Jan Dittberner <[email protected]>
Changed-By: Jan Dittberner <[email protected]>
Description: 
 lsyncd     - daemon to synchronize local directories using rsync
Closes: 673387
Changes: 
 lsyncd (2.0.7-2) unstable; urgency=low
 .
   * fix lsyncd init script stores the wrong PID in /var/run/lsyncd.pid so
     cannot stop it by adding -pidfile option to debian/lsyncd.init's
     DAEMON_ARGS (Closes: #673387)
   * debian/rules: fix FTBFS twice in a row
     - override_dh_clean instead of clean
     - remove generated configure
   * enable hardening build flags
     - add dpkg-dev (>= 1.16.1~) to Build-Depends
     - add DPKG_EXPORT_BUILDFLAGS=1 and include
       /usr/share/dpkg/buildflags.mk in debian/rules
Checksums-Sha1: 
 e00b5b53d238a5ae4c8089d3499d8380a8fb5379 1951 lsyncd_2.0.7-2.dsc
 355ab66e5eb1e1d910e5ed50ae9b1ee52f4096b5 4887 lsyncd_2.0.7-2.debian.tar.gz
 b74d9f1e37b2dee9469fe8ed57a816396acd62d7 68050 lsyncd_2.0.7-2_amd64.deb
Checksums-Sha256: 
 c29af700718bd819a615e97b9c5814f6714107763ee119e85db0334c79a08c18 1951 
lsyncd_2.0.7-2.dsc
 fb71617be94e6f56d64ace05d82fe991ed712ca68f206029e29700336a965606 4887 
lsyncd_2.0.7-2.debian.tar.gz
 c2afc18271b801eb1162433462a57dd5db84696454e58cb7d93a6ca5b3827f31 68050 
lsyncd_2.0.7-2_amd64.deb
Files: 
 7a555a7fd52c93da540cc57174c1648c 1951 admin optional lsyncd_2.0.7-2.dsc
 4497c07e8921034d0d9dbcfd1c7c1f46 4887 admin optional 
lsyncd_2.0.7-2.debian.tar.gz
 ad4be8fa6ec6c6c9c87c868b4f2507e5 68050 admin optional lsyncd_2.0.7-2_amd64.deb

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

iQIcBAEBCAAGBQJPtiOrAAoJEKc+AFVVj7jdkWEP/RV8s6CoqpAwRaEEONanfpQ4
nApzAitovwGajVpf+ryKXyEnh2wsgBr/FgjI4oFCs7OXhKGQglp8x/IrPiQ10d9u
ijhqGfg/fQLnXah/pgLS7lxLtygx5Ml4sqRdldihJNndITZ1IokZZ7k825AbvP+S
TqgdCfg+td6jSRYEkJxPt3zi9i02wJTFWz+aBUvgYHuvEdKTuVIofQPMDKgiKWAo
mhwA77BYeMlftrlHMkug4xbX8Vb5KY11/WenAizae8ScVYjFUGAzJP2GW+CXk72s
Hp2gfu5BwmJsRxUkvtB+mQJbw0eibeDMPdZIiXwaIJwF7HCIQh6jhg1sHn2Y5KNF
hyqhvrKz40GMPRB80EeNMyd7qzKR+AMokfnMozu10F0I61dE5WgGHAYH9oPoZjcm
Kc3quZPYyYQ+9b32+ayhx/cW9Dtfa6B+3CPIbDGyCya9fZnM0Tsb+uvAWYA/JvnK
TF5My734CN+Q7YZBhY9YEW4wek971biu9rg0mpOO+vON+ABjuRlkKm/CUl/y6JKS
aVNE0cIcVsu0rIRGS4T56BVDETetE+ldpYMqIJiB+/ge2EYXgaHeUD/6LCLJm3qc
NusVMEEOXa8ZcOM1MYeAwtVxwS1uTJfe35hqPWnozvqncCSstFxND3vnq/W3fAoJ
eaCWbc6G/b2nRSbgmvJS
=0kHf
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to