Debian Bug report logs - #488660
backuppc: don't stop the daemon in run levels 0 and 6

version graph

Package: backuppc; Maintainer for backuppc is Ludovic Drolez <ldrolez@debian.org>; Source for backuppc is src:backuppc.

Reported by: James Westby <jw+debian@jameswestby.net>

Date: Mon, 30 Jun 2008 13:21:01 UTC

Severity: wishlist

Tags: patch

Found in version backuppc/3.1.0-3

Done: Ludovic Drolez <ldrolez@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Ludovic Drolez <ldrolez@debian.org>:
Bug#488660; Package backuppc. Full text and rfc822 format available.

Acknowledgement sent to James Westby <jw+debian@jameswestby.net>:
New Bug report received and forwarded. Copy sent to Ludovic Drolez <ldrolez@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: James Westby <jw+debian@jameswestby.net>
To: submit@bugs.debian.org
Subject: backuppc: don't stop the daemon in run levels 0 and 6
Date: Mon, 30 Jun 2008 14:19:41 +0100
Package: backuppc
Version: 3.1.0-3
Severity: wishlist
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu intrepid ubuntu-patch

Hi,

There is no need to stop the daemon in run-levels 0 and 6, as
the daemon will be stopped later anyway in the process of
killing all remaining processes. Please see

  https://wiki.ubuntu.com/Teardown

for more details.

The following patch is used in Ubuntu to do this, please consider
applying it.

Note that the version number in the postinst change should be updated
to the version in which you first apply this change.

Thanks,

James


diff -u backuppc-3.1.0/debian/rules backuppc-3.1.0/debian/rules
--- backuppc-3.1.0/debian/rules
+++ backuppc-3.1.0/debian/rules
@@ -85,7 +83,7 @@
        dh_installexamples debian/examples/*
        mv -f debian/backuppc/usr/share/backuppc/doc/*
debian/backuppc/usr/share/doc/backuppc/
        dh_installmenu
-       dh_installinit
+       dh_installinit -- start 20 2 3 4 5 . stop 20 1 .
        dh_installcron
        dh_installman backuppc.8
        dh_installinfo
diff -u backuppc-3.1.0/debian/backuppc.init
backuppc-3.1.0/debian/backuppc.init
--- backuppc-3.1.0/debian/backuppc.init
+++ backuppc-3.1.0/debian/backuppc.init
@@ -10,7 +10,7 @@
 # Should-Start:      $local_fs
 # Should-Stop:       $local_fs
 # Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Default-Stop:      1
 # Short-Description: Launch backuppc server
 # Description:       Launch backuppc server, a high-performance, 
 #                   enterprise-grade system for backing up PCs.
diff -u backuppc-3.1.0/debian/postinst backuppc-3.1.0/debian/postinst
--- backuppc-3.1.0/debian/postinst
+++ backuppc-3.1.0/debian/postinst
@@ -124,6 +124,11 @@
     # change the rights of /etc/backuppc so that the CGI can modify the
conf.
     chown -R backuppc /etc/backuppc
 
+    # Remove shutdown and reboot links; this init script does not need
them.
+    if dpkg --compare-versions "$2" lt "2.1.2-5ubuntu3"; then
+        rm -f /etc/rc0.d/K20backuppc /etc/rc6.d/K20backuppc
+    fi
+
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)







Reply sent to Ludovic Drolez <ldrolez@debian.org>:
You have taken responsibility. (Wed, 01 Apr 2009 12:51:04 GMT) Full text and rfc822 format available.

Notification sent to James Westby <jw+debian@jameswestby.net>:
Bug acknowledged by developer. (Wed, 01 Apr 2009 12:51:04 GMT) Full text and rfc822 format available.

Message #10 received at 488660-close@bugs.debian.org (full text, mbox):

From: Ludovic Drolez <ldrolez@debian.org>
To: 488660-close@bugs.debian.org
Subject: closing
Date: Wed, 1 Apr 2009 14:50:40 +0200
Sorry this is not part of the debian policy yet.
-- 
Ludovic Drolez.

http://www.portethic.com - Tous mes achats sur internet me permettent de realiser des dons aux ONG de mon choix.




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 30 Apr 2009 07:28:43 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 08:07:51 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.