Package: rsync
Version: 3.0.6-1
Severity: wishlist
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu karmic ubuntu-patch


Hi,

attached is a patch from the ubuntu package that removes the stop
links from the package. See https://wiki.ubuntu.com/Teardown for
the rational. It also modifies the init.d header to remove the
stop there too (for shutdown and reboot).

The other change is to start it up a bit later (after gdm) to
make startup faster.

Cheers,
 Michael


We thought you might be interested in doing the same. 


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

Kernel: Linux 2.6.30-10-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u rsync-3.0.6/debian/postinst rsync-3.0.6/debian/postinst
--- rsync-3.0.6/debian/postinst
+++ rsync-3.0.6/debian/postinst
@@ -10,7 +10,11 @@
 
 
 if [ -x /etc/init.d/rsync ]; then
-        update-rc.d rsync defaults >/dev/null
+	if dpkg --compare-versions "$2" lt "3.0.6-2"; then
+		update-rc.d -f rsync remove
+	fi
+
+        update-rc.d rsync start 50 2 3 4 5 . stop 20 1 . >/dev/null
         if [ -x /usr/sbin/invoke-rc.d ]; then
                 invoke-rc.d rsync restart
         else
@@ -20,2 +24,8 @@
 
+
+# Remove shutdown and reboot links; this init script does not need them.
+if dpkg --compare-versions "$2" lt "3.0.6-2"; then
+	rm -f /etc/rc0.d/K20rsync /etc/rc6.d/K20rsync
+fi
+
 exit 0
diff -u rsync-3.0.6/debian/init.d rsync-3.0.6/debian/init.d
--- rsync-3.0.6/debian/init.d
+++ rsync-3.0.6/debian/init.d
@@ -6,7 +6,7 @@
 # Required-Stop:     $remote_fs $syslog
 # Should-Start:      $named
 # Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Default-Stop:      1
 # Short-Description: fast remote file copy program daemon
 # Description:       rsync is a program that allows files to be copied to and
 #                    from remote machines in much the same way as rcp.

Reply via email to