/etc/init.d/sobby stop removes /var/run/rsync.pid

Bug #546990 reported by Alex Muntada
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Server papercuts
Fix Released
Undecided
Chuck Short
sobby (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: sobby

After stopping sobby the file /var/run/rsync.pid is removed:

do_stop() {
        log_daemon_msg "Stopping $PRG"
        start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
        log_end_msg $?
        rm -f /var/run/rsync.pid
}

It seems that this init file was copied from rsync's. Stopping sobby could class with a running rsync server, so it would be better to use $PIDFILE instead:

do_stop() {
        log_daemon_msg "Stopping $PRG"
        start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
        log_end_msg $?
        rm -f $PIDFILE
}

Please, note that this bug was introduced in Ubuntu since sobby does not have an init file in Debian.

ProblemType: Bug
Architecture: i386
Date: Thu Mar 25 16:39:27 2010
DistroRelease: Ubuntu 9.10
Package: sobby 0.4.5-1ubuntu1
ProcEnviron:
 LANGUAGE=ca_ES.UTF-8
 LANG=ca_ES.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic
SourcePackage: sobby
Uname: Linux 2.6.31-20-generic i686

Revision history for this message
Alex Muntada (alex.muntada) wrote :
Revision history for this message
Alex Muntada (alex.muntada) wrote :

Confirmed in lucid.

Changed in sobby (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sobby - 0.4.5-1ubuntu2

---------------
sobby (0.4.5-1ubuntu2) lucid; urgency=low

  * debian/init: Remove proper pid file. (LP: #546990)
 -- Chuck Short <email address hidden> Thu, 25 Mar 2010 21:05:39 -0400

Changed in sobby (Ubuntu):
status: Confirmed → Fix Released
Thierry Carrez (ttx)
Changed in server-papercuts:
status: New → Fix Released
milestone: none → lucid-beta-2
Thierry Carrez (ttx)
Changed in server-papercuts:
assignee: nobody → Chuck Short (zulcss)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.