Package: backuppc
Version: 3.1.0-3
Severity: wishlist
Tags: patch
User: [EMAIL PROTECTED]
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)






-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to