[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug#542287: [Monotone-debian] Bug#542287: monotone-server: Incorrect run
From: |
Zack Weinberg |
Subject: |
Bug#542287: [Monotone-debian] Bug#542287: monotone-server: Incorrect runlevels and dependencies in init.d script |
Date: |
Thu, 1 Oct 2009 12:21:50 -0700 |
I would rather you did not, as I have almost completed packaging work
on the new upstream release; I just need to find the time to finish
testing it. This should happen in no more than a week. Thanks for
the updated patch though, I will probably use it.
zw
On Thu, Oct 1, 2009 at 12:09 PM, Petter Reinholdtsen <address@hidden> wrote:
> Here is a more complete patch, to help you get the fix into unstable.
> Please let us know if we should not NMU to fix it. :)
>
> diff -ur ../monotone-0.44/debian/monotone-server.monotone.init
> ../monotone-0.44-pere/debian/monotone-server.monotone.init
> --- ../monotone-0.44/debian/monotone-server.monotone.init 2009-10-01
> 20:44:18.000000000 +0200
> +++ ../monotone-0.44-pere/debian/monotone-server.monotone.init 2009-10-01
> 20:45:41.000000000 +0200
> @@ -6,10 +6,10 @@
> #
> ### BEGIN INIT INFO
> # Provides: monotone
> -# Required-Start: $network $local_fs
> -# Required-Stop: $network $local_fs
> -# Default-Start: 3 4 5
> -# Default-Stop: 0 1 2 6
> +# Required-Start: $network $remote_fs $syslog
> +# Required-Stop: $network $remote_fs $syslog
> +# Default-Start: 2 3 4 5
> +# Default-Stop: 0 1 6
> # Short-Description: Monotone server.
> ### END INIT INFO
>
> diff -ur ../monotone-0.44/debian/monotone-server.postinst
> ../monotone-0.44-pere/debian/monotone-server.postinst
> --- ../monotone-0.44/debian/monotone-server.postinst 2009-10-01
> 20:44:18.000000000 +0200
> +++ ../monotone-0.44-pere/debian/monotone-server.postinst 2009-10-01
> 21:00:14.000000000 +0200
> @@ -223,6 +223,16 @@
> # stop debconf
> db_stop
>
> +# Those using dependency based boot sequencing and installing
> +# monotone before version 0.44-2 would miss the runlevel 2 symlink.
> +# Recover from this.
> +if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "0.44-2" \
> + && [ ! -f /etc/rc2.d/[SK][0-9][0-9]monotone ] \
> + && [ -f /etc/rc3.d/K[0-9][0-9]monotone ]
> +then
> + update-rc.d -f monotone remove
> +fi
> +
> # dh_installdeb will replace this with shell code automatically
> # generated by other debhelper scripts.
>
>
> Happy hacking,
> --
> Petter Reinholdtsen
>
>
>
>
> _______________________________________________
> Monotone-debian mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/monotone-debian
>