There are some issues conflicting here with the priority work due to the use of insserv in squeeze.
In the priority work in CHEF-1794, when we disable a service we have update-rc.d stop it in all run levels. However, insserv ignores this and uses the LSB values in the init script, choosing the priority as part of its "dependency based boot sequencing".
btm@btm-mbp-squeeze:~$ grep Default- /etc/init.d/apache2
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
btm@btm-mbp-squeeze:~$ sudo /usr/sbin/update-rc.d -f apache2 stop 80 2 3 4 5 .
update-rc.d: using dependency based boot sequencing
update-rc.d: warning: apache2 start runlevel arguments (none) do not match LSB Default-Start values (2 3 4 5)
update-rc.d: warning: apache2 stop runlevel arguments (2 3 4 5) do not match LSB Default-Stop values (0 1 6)
btm@btm-mbp-squeeze:~$ find /etc/rc* -name '*apache*'
/etc/rc0.d/K01apache2
/etc/rc1.d/K01apache2
/etc/rc2.d/S18apache2
/etc/rc3.d/S18apache2
/etc/rc4.d/S18apache2
/etc/rc5.d/S18apache2
/etc/rc6.d/K01apache2
If we modify the init script, then we can get affect the outcome of update-rc.d
btm@btm-mbp-squeeze:~$ grep Default- /etc/init.d/apache2
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
btm@btm-mbp-squeeze:~$ sudo /usr/sbin/update-rc.d -f apache2 stop 80 2 3 4 5 .
update-rc.d: using dependency based boot sequencing
update-rc.d: warning: apache2 stop runlevel arguments (2 3 4 5) do not match LSB Default-Stop values (0 1 2 3 4 5 6)
btm@btm-mbp-squeeze:~$ find /etc/rc* -name '*apache*'
/etc/rc0.d/K01apache2
/etc/rc1.d/K01apache2
/etc/rc2.d/K01apache2
/etc/rc3.d/K01apache2
/etc/rc4.d/K01apache2
/etc/rc5.d/K01apache2
/etc/rc6.d/K01apache2
Obviously this is intrusive to the init script and unacceptable. I think the solution is to use enable/disable on squeeze. I'm not yet sure what the correct course here is, perhaps an insserv service provider.
it's a bit more than that
the output format has also changed.
I guess it should not rely on commands' output because its output format might change and also might be subject to localisation.
anyway, here's a quick fix: http://gist.github.com/459877